Click here to Skip to main content
15,878,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting an error when trying to run a website deployed in IIS.

parser error message-could not load the assemble'App_web_doc8x9lk'.make sure it is compiled before accesing the page.


What may have gone wrong?

Please help, I am stuck with this.
Posted
Updated 3-May-11 21:37pm
v2
Comments
Dalek Dave 4-May-11 3:37am    
Edited for Grammar, Syntax, Spelling and Readability.

This error occurs when u have different version of .net on same IIS

To solve this problem

Create your Application Pool.
After that assign pool to ur application using this

C++
1)  Go to Properties of your application in IIS
2)  In that, use Application pool dropdown to select your pool.


try with this.
Hope it helps.
 
Share this answer
 
Comments
bsb25 4-May-11 3:10am    
Wont work....
Dalek Dave 4-May-11 3:43am    
Don't see why that would be downvoted.
Hello,

When and how often you get this error message?
Is it just after you deployed your page to the IIS?

Have you tried the following:

  • Start cmd.exe
  • run iisreset in the cmd box (this will restart your IIS, so if you have multiple websites running, be careful!)


It is possible that an old release of your App_web_xxxx compiled dll is still in a cache but it requires a recompile of it (and the IIS don't get it).


Hope this helps.

Best regards,
Stops
 
Share this answer
 
v2
Comments
bsb25 4-May-11 3:14am    
tried it...doesn't work :-(
Christoph Keller 4-May-11 3:17am    
I just found the following:
Delete all temporary ASP.NET files, by removing the folders under the following directory:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\

(The Windows directory may vary)

This is from http://codebetter.com/brendantompkins/2006/11/15/fix-for-asp-net-could-not-load-file-or-assembly-app_web-error/.

Perhaps this helps.
bsb25 4-May-11 3:48am    
i saw this solution while searching...even this wont work :-(
Christoph Keller 4-May-11 4:08am    
Can you explain where you get this error (is any code involved)?
Also is any recent change responsible for this error (what where the last things you did before the error occured)?
Did you allready tried to restart the machine?
bsb25 4-May-11 4:26am    
i recently depoyed the website to iis...tried restarting the iis also...but the problem still exists...No code change involved...
Hi!

Publish your website by right clicking on the Website in the Solution explorer. Then copy all the files from directory where your published location. Copy those files to your root directory (Do not copy the website folder itself.only files from the directory) and see if it solve your problem.

The another solution is to create one virtual directory and point this Virtual directory to your application directory. Hope this solve your issue.

Also try HotFix to solve your query.

Regards.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900