XP iis5.1 publishing Asp.net access metadata failed

Source: Internet
Author: User

"/" ApplicationProgramServer error.
--------------------------------------------------------------------------------

An error occurred while accessing the IIS metadatabase.
Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for the error andCodeDetailed information about the cause of the error.

Exception details: system. Web. Hosting. hostingenvironmentexception: An error occurred while accessing the IIS metabase.

Used to run ASP. NET
The process account 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) + 8806383
system. web. configuration. runtimeconfig. getlkgruntimeconfig (virtualpath path) + 117

--------------------------------------------------------------------------------
Version: Microsoft. NET Framework Version: 2.0.50727.3082; ASP. NET
Version: 2.0.50727.3082

 

 

 

XP only supports IIS 5.1,

 

1: Install iis5.1.

2: Click the default website to create a virtual directory, web

3:

Open vs2008, create a website, drag several controls, such as Textbox, and then "generate" -- "Publish Website" and choose to publish to the directory where the web directory of the virtual directory is located.

In this case, the web should contain default. aspx precompiledapp. config web. config and the bin folder. [The premise is that this Website Cannot run incorrectly]

4: Open the browser and enter http: // local IP Address/web/default. aspx

 

If the above access metadata error occurs, the installation sequence of IIS and vs2008 is incorrect.

 

5:

My. NET is v4.0.30319. [2.0.50727.3082 is displayed in the previous example. You need to check which version is displayed .]

 

C:/Windows/Microsoft. net/framework/, find the v4.0.30319 folder, and enter the address C:/Windows/Microsoft. net/framework/v4.0.30319copy. Click the run command at the bottom of the page.

Wait a moment and the registration will solve the problem.

 

6: I have these problems for your reference only!

 

 

 

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.