473,383 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

failure to initialize AppDomain: ConfigurationErrorsException

Hi, folks,

I've just installed Visual Studio 2005 on my XP Pro (SP2) environment and
the new ASP.NET 2.0 doesn't seem to be running well in my IIS. Every time I
try to load up a .aspx page (even if it's just flat HTML), I get the "server
application unavailable" error, accompanied by two bits in the event log.
One is an error:

Failed to execute request because the App-Domain could not be created.
Error: 0x80131902

The other is a warning about a ConfigurationErrorsException (full text
below). I've tried lots of permissions fiddling, and I've followed the
suggestion to configure machine.config for the "System" process -- all to no
avail. One hint on the web suggests this is an "environmental" problem, but
for the life of me I can't figure out what to do. One guy out there seemed
to have this problem and solved it by reinstalling everything from XP on up.
I'd kind of like to avoid that. Any ideas?

Thanks!

....Chris

Failed to initialize the AppDomain:/LM/W3SVC/1/ROOT

Exception: System.Configuration.ConfigurationErrorsException

Message: Exception of type
'System.Configuration.ConfigurationErrorsException ' was thrown.

StackTrace: at
System.Web.Configuration.ErrorRuntimeConfig.ErrorC onfigRecord.System.Configuration.Internal.IInterna lConfigRecord.GetLkgSection(String
configKey)

at System.Web.Configuration.RuntimeConfigLKG.GetSecti onObject(String
sectionName)

at System.Web.Configuration.RuntimeConfig.GetSection( String sectionName,
Type type, ResultsIndex index)

at System.Web.Configuration.RuntimeConfig.get_Hosting Environment()

at System.Web.Hosting.HostingEnvironment.StartMonitor ingForIdleTimeout()

at System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters)

at System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters)

at
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironment(String
appId, IApplicationHost appHost, HostingEnvironmentParameters
hostingParameters)

at
System.Web.Hosting.ApplicationManager.CreateAppDom ainWithHostingEnvironmentAndReportErrors(String
appId, IApplicationHost appHost, HostingEnvironmentParameters
hostingParameters)
Dec 8 '05 #1
3 6729
I had the same problem and used the following steps to resolve it:

With a command window, get to the latest version of .net under
C:\Windows\Microsoft.Net\Framework\
Now run the following command: "net stop w3svc" to stop web services.
Then use "aspnet_regiis.exe -ua" to uninstall all instances of ASP.NET
from IIS.
Follow with "aspnet_regiis.exe -i" to install ASP.NET into IIS.
Now restart web services with "net start w3svc".

After this I was able to reload my browser and properly view my page.

Hope this helps.

Dec 30 '05 #2
Thank you very much! This seems to have fixed me up as well.

Happy holidays, and thanks again,

....Chris

<st******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
I had the same problem and used the following steps to resolve it:

With a command window, get to the latest version of .net under
C:\Windows\Microsoft.Net\Framework\
Now run the following command: "net stop w3svc" to stop web services.
Then use "aspnet_regiis.exe -ua" to uninstall all instances of ASP.NET
from IIS.
Follow with "aspnet_regiis.exe -i" to install ASP.NET into IIS.
Now restart web services with "net start w3svc".

After this I was able to reload my browser and properly view my page.

Hope this helps.

Dec 30 '05 #3


"st******@gmail.com" wrote:
I had the same problem and used the following steps to resolve it:

With a command window, get to the latest version of .net under
C:\Windows\Microsoft.Net\Framework\
Now run the following command: "net stop w3svc" to stop web services.
Then use "aspnet_regiis.exe -ua" to uninstall all instances of ASP.NET
from IIS.
Follow with "aspnet_regiis.exe -i" to install ASP.NET into IIS.
Now restart web services with "net start w3svc".

After this I was able to reload my browser and properly view my page.

Hope this helps.

Feb 2 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Graham | last post by:
I have developed a Simple MFC GUI to allow a user to display and control an activity The program works fine on a PC with Visual Studio installed, but when I transfer the progra to a Laptop computer...
4
by: akhare1 | last post by:
OK, before I start, let me clarify a few things here. This is not the run of the mill failure to read a registry key while trying to write to the Event Log. Here's our setup: a) IIS 6.0...
0
by: Brad Wood | last post by:
<environment> Consuming a web service from a VS2005 beta 2 test harness on WinXP. Web service built with VS2003 running on my machine with IIS 5X set to use ASP.NET 1.1 </environment> I have...
2
by: Doug | last post by:
I've installed ASP.NET onto our web server (Win2k/unsure of IIS version) this morning. I created a simple ASPX page in Notepad that writes out an asp:Label control to the page and dynamically...
3
by: Michael Schwarz | last post by:
Hi, from time to time I get following error message with my ASP.NET 2.0 web application in the event log: An error occurred executing the configuration section handler for system.web/identity. ...
1
by: Jess Chadwick | last post by:
I am attempting to use the Enterprise Library (Jan 2006) Cryptography block to encrypt a credit card number in my ASP.NET 2.0 Commerce Server application. Everything is configured correctly, as...
4
by: =?Utf-8?B?QkogU2FmZGll?= | last post by:
I am reposting this for a colleague because he has had some problems setting up his subscriber Nospam alias: I am having problems unit testing a method which is decorated with the attribute. I...
5
by: giddy | last post by:
Hi , I'm probably just doing something a little silly. I get a System.Configuration.ConfigurationErrorsException! This is my config file: <configSections> <section name="qConfig"...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.