|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello all,
I have seen a similar posting on the above error message on this forum, but they were a little different from my scenario, if anyone has ever encountered this problem please let me know. I have a project on a development box1, I compile the project and can brows through the pages perfectly, I now want to move the code to a production box2, where I dont want to compile any code, so I just move the aspx pages + dll from box1. I get the following error Parser Error Message: Could not load type 'MyWeb.Home'. on the home page. I have the folder structure matching on both box1 and box2. I tried to rebuild the application, deleted the dll and recreated and moved it, it give the same error. any ideas greatly helpful. thanks das |
|
#2
|
|||
|
|||
|
Hello all,
I am giving the answer myself, who know someone will come across this weird .net problem later, 1. Remove all the References on the Box (Production in my case) - ASPX Pages, HTML Pages, Script Files, Even Images 2. Remove all DLL's from the bin directory on Prod box 3. Move the New DLL(After doing a Good Build/Rebuild) from Dev box to Prod Box 4. Move the ASPX/HTML/Img's to Production FROM DEVELOPMENT you should be fine after you do all this, if not try out some of the other steps in the other thread: URL Peace Das |
|
#3
|
|||
|
|||
|
I too faced the same problem and finally i found that the problem lies in the configuration of the specific project folder in IIS. After fixing it , the application works.
|
|
#4
|
|||
|
|||
|
Go to IIS manager, right click on the virtual folder and go to properties. Then, under Application settings hit create. This will build an application if it's not already there. This worked for me under MS Server 2003. I also had Scripts and Executables turned on.
|
|
#5
|
|||
|
|||
|
The .dll has to be in the IIS bin folder
That's it, references are relative to IIS bin directory, ie the Virtual folder, not the Windows folder.
I fixed my references this way. Copy the whole application folder somewhere else, then in IIS Manager delete the original. Copy back. Then (in IIS)=> New/Virtual Directory select the directory. (Make sure to note beforehand, reset any other properties, like Directory Security etc.) John |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > Parser Error Message: Could not load type 'MyWeb.Home'. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|