IIS server application unavailable Solution

Source: Internet
Author: User

Failed to execute request because the app-domain cocould not be created Solution
When you open an ASP. NET Website, if an error occurs, view the records in "Event Viewer". If warning information is found:

"Failed to execute request because the app-domain cocould not be created. Error: 0x80131902"

Failed to initialize appdomain:/lm/w3svc/1/root

Exception: system. configuration. configurationerrorsexception
Message: an exception of the type "system. configuration. configurationerrorsexception" is thrown.
Stacktrace: In system. Web. configuration. errorruntimeconfig. errorconfigrecord. system. configuration. Internal. iinternalconfigrecord. getlkgsection (string configkey)
In system. Web. configuration. runtimeconfiglkg. getsectionobject (string sectionname)
In system. Web. configuration. runtimeconfig. getsection (string sectionname, type, resultsindex index)
In system. Web. configuration. runtimeconfig. get_hostingenvironment ()
In system. Web. Hosting. hostingenvironment. startmonitoringforidletimeout ()
In system. Web. Hosting. hostingenvironment. initialize (applicationmanager appmanager, iapplicationhost apphost, iconfigmappathfactory configmappathfactory, hostingenvironmentparameters hostingparameters)
In system. Web. Hosting. hostingenvironment. initialize (applicationmanager appmanager, iapplicationhost apphost, iconfigmappathfactory configmappathfactory, hostingenvironmentparameters hostingparameters)
In system. Web. Hosting. applicationmanager. createappdomainwithhostingenvironment (string appid, iapplicationhost apphost, hostingenvironmentparameters hostingparameters)
In system. Web. Hosting. applicationmanager. createappdomainwithhostingenvironmentandreporterrors (string appid, iapplicationhost apphost, hostingenvironmentparameters hostingparameters)

Basically, this issue is most likely to occur on the first line of. NET Framework 2.0. The cause is unknown, but the following practices can solve this problem:

1. First open the "command window", cd c:/Windows/Microsoft. NET/framework/
2. Run "net stop W3SVC" on the command line"

3. cd c:/Windows/Microsoft. NET/framework/v2.0.50727/
4. "aspnet_regiis.exe-UA"

5. re-install. Net to IIS and execute "aspnet_regiis.exe-I"
6. cd c:/Windows/Microsoft. NET/framework/
7. Restart W3SVC and execute "Net start w3svc ".

OK...

 

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.