Error details
Erver error in '/accident' application.
--------------------------------------------------------------------------------
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current Web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception details: system. Web. Hosting. hostingenvironmentexception: failed to access IIS metabase.
The process account used to run ASP. NET must have read access to the IIS metabase (e.g. IIS: // servername/W3SVC ). for information on modifying metabase permissions, please seehttp: // support.microsoft.com /? Kbid = 267904.
Source error:
An unhandled exception was generated during the execution of the current Web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack trace:
[Hostingenvironmentexception: failed to access IIS metabase.]
System. Web. configuration. metabaseserverconfig. mappathcaching (string siteid, virtualpath path) + 3492170
System. Web. configuration. metabaseserverconfig. system. Web. configuration. iconfigmappath. mappath (string siteid, virtualpath vpath) + 9
System. Web. Hosting. hostingenvironment. mappathactual (virtualpath, Boolean permitnull) + 163
System. Web. cachedpathdata. getconfigpathdata (string configpath) + 382
System. Web. cachedpathdata. getconfigpathdata (string configpath) + 243
System. Web. cachedpathdata. getapplicationpathdata () + 68
System. Web. cachedpathdata. getvirtualpathdata (virtualpath, Boolean permitpathsoutsideapp) + 3385679
System. Web. configuration. runtimeconfig. getlkgruntimeconfig (virtualpath path) + 189
Solution
1. cmd
2. cd c:/Windows/Microsoft. NET/framework/v2.0.50727
3. aspnet_regiis/u
4. aspnet_regiis/R
5. aspnet_regiis-I
6. iisreset/noforce
7. run regedit → open the Registry → locate HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/aspnet_state/parameters node → set the allowremoteconnection key value to 1 (1 to allow remote computer connection, 0 indicates disabled) → set port (port number)
8. Enable ASP. NET State Service
Right-click my computer> Manage> services and applicationsProgram→ Service → double-click "ASP. NET State Service" → start (can be set to "automatic ")
Operation Details:
C:/Documents and Settings/Administrator> Cd C: // windows // microsoft.net//framework//v2.0.50727
C:/Windows/Microsoft. NET/framework/v2.0.50727> aspnet_regiis-ga Administrator
Start granting administrator access to the IIS metabase and other directories us
Ed by ASP. NET.
Finished granting administrator access to the IIS metabase and other directories
Used by ASP. NET.
C:/Windows/Microsoft. NET/framework/v2.0.50727> aspnet_regiis-LV
2.0.50727.0 valid C:/Windows/Microsoft. NET/framework/v2.0.50727/
Pnet_isapi.dll
C:/Windows/Microsoft. NET/framework/v2.0.50727> aspnet_regiis-I
Start installing ASP. NET (2.0.50727 ).
..............
Finished installing ASP. NET (2.0.50727 ).
C:/Windows/Microsoft. NET/framework/v2.0.50727> aspnet_regiis-LV
2.0.50727.0 valid (Root) C:/Windows/Microsoft. NET/framework/v2.0.50727/
Pnet_isapi.dll
C:/Windows/Microsoft. NET/framework/v2.0.50727> iisreset/noforce
Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted
C:/Windows/Microsoft. NET/framework/v2.0.50727>
IIS Problems
1. Run: regsvr32 % WINDIR %/system32/VBScript. dll
2. Run: MSDTC-resetlog
3. reinstall IIS