An error occurred while accessing the IIS metadatabase.
Note:An error occurred while executing the current Web request. Check the stack trace information for details about the error and the source of the error in the code.
Exception details:System. Web. Hosting. hostingenvironmentexception: An error occurred while accessing the IIS metadatabase.
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.
Source error:
An unhandled exception is generated during the execution of the current Web request. You can use the following exception stack trace information to determine the cause and location of the exception. |
Stack trace:
[Hostingenvironmentexception: An error occurred while accessing the IIS metabase.] System. web. configuration. metabaseserverconfig. mappathcaching (string siteid, virtualpath path) + 637 system. web. configuration. metabaseserverconfig. system. web. configuration. iconfigmappath2.mappath (string siteid, virtualpath vpath) + 9 system. web. hosting. hostingenvironment. mappathactual (virtualpath, Boolean permitnull) + 174 system. web. hosting. hostingenvironment. mappathinternal (virtualpath, Boolean permitnull) + 51 system. web. cachedpathdata. getconfigpathdata (string configpath) + 341 system. web. cachedpathdata. getconfigpathdata (string configpath) + 234 system. web. cachedpathdata. getapplicationpathdata () + 38 system. web. cachedpathdata. getvirtualpathdata (virtualpath, Boolean permitpathsoutsideapp) + 8809743 system. web. configuration. runtimeconfig. getlkgruntimeconfig (virtualpath path) + 117
|
Version:Microsoft. NET Framework Version: 2.0.50727.3615; ASP. NET version: 2.0.50727.3618
Wandering wind
Http://www.cnblogs.com/scgw/archive/2007/12/27/1017080.html
Is as follows:
Error analysis:
When installing vs2005, I first install vs2005 and then install IIS. In this caseThe process account used to run ASP. NET must have read access to the IIS metabase.However, the installation sequence is incorrect, so I cannot access it.
Solution:
1 start-> Program-> Microsoft. NET Framework SDK V2.0-> SDK Command Prompt
2. Enter aspnet_regiis.exe-I.
3. Close vs2005 and open C:/Windows/Microsoft. NET/work/v2.0.50727/Temporary ASP. Net files to delete the directory just debugged.
4. Restart IIS to solve the problem.
Hehe, the problem is actually very simple, but the installation sequence is wrong. This is because visual studio2005 is installed in XP and IIS is installed again.
However, after I tried it, the problem still persists.
You have provided a metaacl tool to modify the permissions of the metabase on the IIS Admin object.
Http://support.microsoft.com /? Kbid = 267904
I tried it, but I still couldn't. I suddenly thought I had installed. Net frameword 2.0 and. Net frameword 4.0. Is that the reason? Finally, in the 2.0 and 4.0 folders
Aspnet_regiis.exe-I. The problem is solved!