Server Error in application. IIS Problems

Source: Internet
Author: User
Tags metabase

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

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.