The developed project can run in the vs2005 development environment. There is no error, but an error occurs when it is placed on IIS for browsing.
The page error prompt is as follows:
Server ApplicationsProgramUnavailable
The Web application you are attempting to access on this web server is currently unavailable. Please click "refresh" in the web browser to try your request again.
View System Event Logs and find an error and a warning.
Error:
Failed to execute the request because the application domain cannot be created. Error: 0x80070005 Access denied.
Warning:
Failed to initialize appdomain:/lm/w3svc /...
Exception: system. Io. fileloadexception
Message: failed to Load file or assembly "system. Web, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a" or one of its dependencies. Access denied.
After searching for a circle on the internet, it seems that this problem may occur in both 2003 and XP. The causes of the problem are as follows: 1. asp. net2.0 does not properly register in IIS 2. Permission issues
In the first case, you can re-register Asp.net: System Disk \ windows \ microsoft.net \ framework \ v2.0.50727 (version number here) \ aspnet_regiis.exe-I
For permission issues, make sure that the account running Asp.net (Network Service in win2003 by default and ASPnet in XP) Has access permissions for N directories, it is mainly the system directory (the specific list can be easily found on the Internet), and there is a directory that is easy to ignore:
Virtual directory corresponding to the Web Application