Failed to access IIS metabase
Similarly, assigning IIS operation permissions to new users of the operating system can also use this command to handle
Description: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace information For more information about the error and the source of the error in your code.
Exception Details: System.Web.Hosting.HostingEnvironmentException: access to the IIS metabase failed .
The process account used to run ASP must have read access to the IIS metabase (for example, IIS://servername/w3svc). For information about how to modify metabase permissions , see http://support.microsoft.com/?kbid=267904.
SOURCE Error:
An unhandled exception was generated during the execution of the current WEB request. You can use the following exception stack trace information to determine information about the cause of the exception and where it occurred. |
A common workaround:
Here's how it works:
1. Start-up-run with input cmd
After the 2.DOS window opens, enter the above folder in the DOS window
3. Enter Aspnet_regiis.exe-i-enable
But this did not solve my problem, Google many times after the discovery is indeed a permission problem caused
Workaround:
CMD switch to the system directory, following the system installation in C:\Windows for example
Start running cmd
CD to Directory
C:\WIDOWS\Microsoft.NET\Framework\v2.0.50727
Input
Aspnet_regiis-ga ASPNET
You can get prompt
Similarly, assigning IIS operation permissions to new users of the operating system can also use this command to handle
Reference Source:
The following files can be downloaded from the Microsoft Download Center:
Download the Metaacl.exe package now.
Release date: July 16, 2003
For more information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to obtain Microsoft support files from an online service
Microsoft has scanned the file for viruses. Microsoft is using the latest virus detection software available when the file is published. The file is stored on a security-enhanced server to prevent unauthorized changes to it.
The Metaacl.exe file contains the following files:
File Name |
Size |
Metaacl.vbs |
7,380 bytes |
EULA.txt |
1,652 bytes |
For a detailed discussion of how to use the Metaacl.vbs tool, please click the following Microsoft Knowledge Base article:
326902 ACLs and using MetaAcl to change metabase ACL permissions
Note : If you are using ASP. NET 2.0 and you must grant Windows user account metabase permissions, do not use the MetaAcl tool. Instead, run the ASP. NET IIS Registration tool command with the -ga option. For example, the following command grants the Windows user account <WindowsUserAccount> permissions to the IIS metabase:
Aspnet_regiis-ga <WindowsUserAccount>
warning : Improper editing of metabase may cause serious problems, and you may need to reinstall all products that use the metabase. Microsoft cannot guarantee that problems that result from editing the metabase incorrectly can be resolved. Editing the metabase requires you to be at your own risk.
Note : Backups are made every time you edit the metabase.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Access to IIS metabase failure workaround