Note that incorrect error codes (error: 0x80131902) may be caused by other errors. The ASP. Net Process identity does not have read permission on the Global Assembly Cache, so the request cannot be executed. Error: 0x80131902 Aspnet_wp.exe (PID: 3480) stops unexpectedly. 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) For more information, see Help and Support Center in http://go.microsoft.com/fwlink/events.asp. Asp.net's 0x80131902 error usually occurs when the ASPX page file is run on IIS for the first time. The error displayed in the browser is "app-domain cocould not be created. Error: 0x80131902", that is, "The application domain cannot be created ". The error cause is unclear. The following is a solution: 1) Open the command prompt (command prompt) 2) Run "net stop W3SVC" to stop IIS 3) switch to the "C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727" directory" Execute “aspnet_regiis.exe-UA in 4)to Uninstall all versions of Asp.net on IIS. 5. Execute unzip aspnet_regiis.exe-I "and reinstall Asp.net to IIS. 6) Execute "Net start w3svc" and start the IIS ---UA command. This article is reprinted. To commemorate this, we hereby announce |