1. You may have installed. net2.0 in advance before installing IIS. The cause of the error is unknown! The details are as follows.
Event Type: Error
Event Source: ASP. NET 2.0.50727.0
Event Type: None
Event ID: 1334
Date:
Event: 11:57:29
User: N/
COMPUTER: BY-66E5156A0760
Description:
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)
Event Type: Error
Event Source: ASP. NET 2.0.50727.0
Event Type: None
Event ID: 1088
Date:
Event: 11:57:29
User: N/
COMPUTER: BY-66E5156A0760
Description:
Failed to execute the request because the application domain cannot be created. Error: 0x80131902
Solution:
C: \ windows \ microsoft.net \ framework \ v2.0.50727 \ aspnet_regiis.exe-I
Register again.
2. An error still occurs. Failed to restart W3SVC. Error code: 0x8007041d
Event Type: Error
Event Source: ASP. NET 2.0.50727.0
Event Type: Installation
Event ID: 1024
Date:
Event: 12:00:24
User: N/
COMPUTER: BY-66E5156A0760
Description:
Failed to restart W3SVC. Error code: 0x8007041d
Solution:
Restart IIS
---------------------------
Other errors:
The server application is unavailable.
The Web application you are attempting to access on this web server is currently unavailable. Please click "refresh" in the web browser to try your request again.
Administrator considerations:Error messages that detail the cause of this specific request failure can be found in the system event log of the Web server. Check this log item to find out the cause of this error.