Exception Details: System.Web.Hosting.HostingEnvironmentException: Access to the IIS metabase failed workaround __ Database

Source: Internet
Author: User
Tags stack trace hosting metabase

Failed to access the IIS metabase

Similarly, giving IIS operational permissions to new users of the operating system can also be handled using this command

Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException: failed to access the IIS metabase .

The process account that is used to run ASP.net must have read access to the IIS metabase (such as IIS://servername/w3svc). For information about how to modify metabase permissions , see http://support.microsoft.com/?kbid=267904.


Common solutions:

The operation method is as follows:
1. Start--> run--> input cmd, run
After the 2.DOS window is open, enter the above folder in the DOS window
3. Input Aspnet_regiis.exe-i-enable

But this did not solve my problem, Google many times after the discovery is indeed a matter of privilege caused

Workaround:

CMD switch to the system directory, the following system installed in C:\Windows as an example

Start running cmd

CD to Directory

C:\WIDOWS\Microsoft.NET\Framework\v2.0.50727

Input

Aspnet_regiis-ga ASPNET

Similarly, giving IIS operational permissions to new users of the operating system can also be handled using this command

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.