Failed to initialize appdomain:/lm/w3svc/1/root, failed to Load file or assembly "system. Web ...." Solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.