Problem: 'Server Application Unavailable' error when testing ASP 2.0 code in IIS.
The event log said:
'Failed to execute request because the App-Domain could not be created. Error: 0x80131902'
In the same Windows XP box, I copied my ASP 2.0 codes from Visual Studio 2005 Dev. Environment to IIS. When I tried 'Localhost' or from another computer on the LAN to access the default aspx page, I got 'Server Application Unavailable' error.
I have done some resaerch in this forum and still could not find the solution. Please Help me out.
Background:
- This is the first time I deploy ASP 2.0 code from my Developemnt Environment to IIS.
- My Visual Studio 2005 and the IIS are in the same WIndows XP box.
- Database is Oracle and my codes need to have full access to Local and network resources.
- Everything work well in Development Environment.
What I did:
- I installed IIS using Windows XP CD.
- In IIS, I changed the Default Web Site's "ASP.NET Version" to '2.0.50727'.
- In IIS, I setup the default page to use my 'Default.aspx'.
- I mirrored all my ASP 2.0 codes to the Inetpub\wwwroot.
- My Web.Config is quite simple (see below)
<configuration ...>
<appSettings >...</appSettings>
<connectionStrings>... </connectionStrings>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network host="..." userName="..." password="..." />
</smtp>
</mailSettings>
</system.net>
<system.web>
<compilation debug="true">
<assemblies>
<add assembly="Oracle.DataAccess, Version=..., Culture=..., PublicKeyToken=..."/>
</assemblies>
</compilation>
<authentication mode="Windows"/>
<customErrors mode="..." defaultRedirect="...">
...
</customErrors>
<sessionState mode="InProc" cookieless="false" timeout="30" />
<httpRuntime maxRequestLength="10240" />
</system.web>
</configuration>
What Happen:
- I got 'Server Application Unavailable'error when trying 'Localhost' or browsing the site
- The event log said:
'Failed to execute request because the App-Domain could not be created. Error: 0x80131902'
My Attempt:
- It seems to be security issue, so I took one of the suggestion from forum
and add <processModel...> sub-node to <system.web> in Web.Config file:
<system.web>
...
<processModel userName="SYSTEM" password="AutoGenerate" />
...
</system.web>
I am answering my own question after surveying numerous ''Server Application Unavailable' threads and made more trials.
I did two things to make it work:
a) Run 'CMD' to open up DOS command window
b) cd to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 (for ASP 2.0)
c) execute this ..>aspnet_regiis -i (register)
d) then open C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config file
and modified the line <processModel autoConfig="true" userName="machine" password="AutoGenerate" />
e) stop/restart my seb site
f) Now, it works when I type in 'Localhost'. (what a relief, and I hope this help whoever is searching for answer.)
However, now I am running into a different issue.
ISSUE: When I browse my site from another computer in the LAN, the browser popup login window for username/pswd.
I must missed some IIS setup for internet access. Can some one help me out???
Jansuan
0 Points
20 Posts
'Server Application Unavailable' error when testing ASP 2.0 code in IIS inWIndows XP
Mar 06, 2007 08:09 AM|LINK
Problem: 'Server Application Unavailable' error when testing ASP 2.0 code in IIS.
The event log said:
'Failed to execute request because the App-Domain could not be created. Error: 0x80131902'
In the same Windows XP box, I copied my ASP 2.0 codes from Visual Studio 2005 Dev. Environment to IIS. When I tried 'Localhost' or from another computer on the LAN to access the default aspx page, I got 'Server Application Unavailable' error.
I have done some resaerch in this forum and still could not find the solution. Please Help me out.
Background:
- This is the first time I deploy ASP 2.0 code from my Developemnt Environment to IIS.
- My Visual Studio 2005 and the IIS are in the same WIndows XP box.
- Database is Oracle and my codes need to have full access to Local and network resources.
- Everything work well in Development Environment.
What I did:
- I installed IIS using Windows XP CD.
- In IIS, I changed the Default Web Site's "ASP.NET Version" to '2.0.50727'.
- In IIS, I setup the default page to use my 'Default.aspx'.
- I mirrored all my ASP 2.0 codes to the Inetpub\wwwroot.
- My Web.Config is quite simple (see below)
<configuration ...>
<appSettings >...</appSettings>
<connectionStrings>... </connectionStrings>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network host="..." userName="..." password="..." />
</smtp>
</mailSettings>
</system.net>
<system.web>
<compilation debug="true">
<assemblies>
<add assembly="Oracle.DataAccess, Version=..., Culture=..., PublicKeyToken=..."/>
</assemblies>
</compilation>
<authentication mode="Windows"/>
<customErrors mode="..." defaultRedirect="...">
...
</customErrors>
<sessionState mode="InProc" cookieless="false" timeout="30" />
<httpRuntime maxRequestLength="10240" />
</system.web>
</configuration>
What Happen:
- I got 'Server Application Unavailable'error when trying 'Localhost' or browsing the site
- The event log said:
'Failed to execute request because the App-Domain could not be created. Error: 0x80131902'
My Attempt:
- It seems to be security issue, so I took one of the suggestion from forum
and add <processModel...> sub-node to <system.web> in Web.Config file:
<system.web>
...
<processModel userName="SYSTEM" password="AutoGenerate" />
...
</system.web>
However, I still got the same error.
Please help.
Thanks!
jansuan
IIS web.config C# ASP.net asp.net 2005 release deploy
Jansuan
0 Points
20 Posts
Re: 'Server Application Unavailable' error when testing ASP 2.0 code in IIS inWIndows XP
Mar 06, 2007 11:37 AM|LINK
I am answering my own question after surveying numerous ''Server Application Unavailable' threads and made more trials.
I did two things to make it work:
a) Run 'CMD' to open up DOS command window
b) cd to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 (for ASP 2.0)
c) execute this ..>aspnet_regiis -i (register)
d) then open C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config file
and modified the line <processModel autoConfig="true" userName="machine" password="AutoGenerate" />
e) stop/restart my seb site
f) Now, it works when I type in 'Localhost'. (what a relief, and I hope this help whoever is searching for answer.)
However, now I am running into a different issue.
ISSUE: When I browse my site from another computer in the LAN, the browser popup login window for username/pswd.
I must missed some IIS setup for internet access. Can some one help me out???
jansuan
asp.net 2005 release deploy