Exception-Asp. Net Access to the IIS metadatabase failed.

Source: Internet
Author: User
Tags metabase

Exception details: system. Web. Hosting. hostingenvironmentexception: An error occurred while accessing the IIS metabase.

 

The process account used to run ASP. NET must have read access to the IIS metabase (for example, IIS: // servername/W3SVC. For information about how to modify metadatabase permissions, see http://support.microsoft.com /? Kbid = 267904.

 

 

This is because the installation sequence is incorrect because vs2005 is installed before IIS is installed. Install IIs before vs2005 or related components,

The solution is as follows:
Solution:
1. Open CMD and go to C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727.
2. Enter aspnet_regiis.exe-I
Aspnet_regiis-ga <windowsuseraccount>
3. Disable vs2005 first.
4. Open c: \ windows \ Microsoft. NET \ work \ v2.0.50727 \ temporary ASP. NET files, find the directory of the program you just debugged, and delete it.
5. Disable the IIS server and restart it once.
6. Use IE to browse your program and solve the problem.

The "failed to create mutex" problem also occurs.
Solution:
1. Disable vs2005 first.
2. Open c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ temporary ASP. NET files, find the directory of the program you just debugged, and delete it.
3. Disable the IIS server and restart it once.
4. Use IE to browse your program and solve the problem.

 

Related Article

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.