I wrote this post on my blog on how to resolve the generic Server Application Unavailable message we sometimes get as ASP.Net developers:
If you have ever received an error message on a .Net application that simply stated "Server Application Unavailable" you might find this useful.
When you receive this error, make sure to check the event viewer on the server. This is found under administrative tools. Under the application event log, you will likely find an error that states: "It is not possible to run two different versions of ASP.NET
in the same IIS process. Please use the IIS Administration tool to run the application in a separate process."
An application pool is a process that responds to web requests under IIS. An application pool does not have a setting for what type of ASP.Net applications will be run in it. Instead, it loads the appropriate libraries when an ASP.Net application is loaded
in the process. Because the libraries for ASP.Net 1.1 and ASP.Net 2.0 are similar, but not the same, the application pool cannot respond to requests for both types of applications at the same time. This can cause sporadic behaviour if you are using the server
at the same time as another developer and you have applications using different versions of the framework in the same application pool.
Make sure that on your server there is an application pool dedicated to ASP.Net 2.0 applications and one for ASP.Net 1.1 applications. When you add an ASP.Net application to the server, make sure you select the right application pool for it.
Application Pools Mixed environments
Please mark as answered if I helped.
I don't answer personal emails unless I know you or of you. Feel free to post in the forum to get an answer from me.
This sounds like a similar issue I am running into. When I build out my web ap in Web Dev 2005, I can see the the web app working fine, as the ASP.NET Development Server pops up and the the program shows up on the site with a port value. My problem is that
when I attempt to hit it directly as if from the internet, I get a generic error message that mentions about the web.config file, I recently made a change on the site properties to change from ASP 1.1 to 2.0 now it gives a message "Server
Application Unavailable" I follow the instructions according to info on the page and it talks about error 500 in the log file.
I looked in my IIS and I could not find a reference to "application pool". I have multiple sites running on this server (win2k, IE6SP1, assuming IIS5, SQL Express).
This is driving me nuts as I have web pages in the same folder that are not part of the ASP.NET (C#) application and I can view them fine from the browser, but the only way I can see my web app is through
the ASP.NET Development Server program using the port addressing it specifies.
This sounds like a similar issue I am running into. When I build out my web ap in Web Dev 2005, I can see the the web app working fine, as the ASP.NET Development Server pops up and the the program shows up on the site with a port value. My problem is that
when I attempt to hit it directly as if from the internet, I get a generic error message that mentions about the web.config file, I recently made a change on the site properties to change from ASP 1.1 to 2.0 now it gives a message "Server
Application Unavailable" I follow the instructions according to info on the page and it talks about error 500 in the log file.
I looked in my IIS and I could not find a reference to "application pool". I have multiple sites running on this server (win2k, IE6SP1, assuming IIS5, SQL Express).
This is driving me nuts as I have web pages in the same folder that are not part of the ASP.NET (C#) application and I can view them fine from the browser, but the only way I can see my web app is through
the ASP.NET Development Server program using the port addressing it specifies.
You may be running a different version of IIS than I. Have you run the aspnet_regiis -s command on your directory from the framework directory?
--JJ
Please mark as answered if I helped.
I don't answer personal emails unless I know you or of you. Feel free to post in the forum to get an answer from me.
It sounds like you haven't looked in your Event Viewer (instead of the log file). If you open Control Panel, Administrative Tools, Event Viewer (it's also in Computer Manager) you will see Application Errors that explain some details about the error you
are getting. In my case it was a folder permissions problem. I gave the ASPNET user access to my web folders and it worked.
When you need to run a different version of the .NET Framework on a different Virtual Directories inside the site,or sites; you need to create a different Application Pool and assign for each Virtual Directory or each Site one of the Application Pools that
you have created. Then you can make each one of this Virtual Directory or/Site run on a different version of the .NET Framework.
LEHayes, Application pools are not available in IIS5/Win2k.
Your 2.0 app in Web Dev 2005 does not use IIS at all. Rather, it uses an ASP.NET Dev Server that ships with the IDE software. When you start the application in development, it uses this software and assigns a random port.
To prepare your application for deployment, try using the Build/Publish Web Site Interface in VS.NET 2005
jose_jimenez
Contributor
2504 Points
484 Posts
Server Application Unavailable Message
Feb 01, 2007 07:30 PM|LINK
I wrote this post on my blog on how to resolve the generic Server Application Unavailable message we sometimes get as ASP.Net developers:
If you have ever received an error message on a .Net application that simply stated "Server Application Unavailable" you might find this useful.
When you receive this error, make sure to check the event viewer on the server. This is found under administrative tools. Under the application event log, you will likely find an error that states: "It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration tool to run the application in a separate process."
An application pool is a process that responds to web requests under IIS. An application pool does not have a setting for what type of ASP.Net applications will be run in it. Instead, it loads the appropriate libraries when an ASP.Net application is loaded in the process. Because the libraries for ASP.Net 1.1 and ASP.Net 2.0 are similar, but not the same, the application pool cannot respond to requests for both types of applications at the same time. This can cause sporadic behaviour if you are using the server at the same time as another developer and you have applications using different versions of the framework in the same application pool.
Make sure that on your server there is an application pool dedicated to ASP.Net 2.0 applications and one for ASP.Net 1.1 applications. When you add an ASP.Net application to the server, make sure you select the right application pool for it.
Application Pools Mixed environments
I don't answer personal emails unless I know you or of you. Feel free to post in the forum to get an answer from me.
Girijesh
Contributor
3126 Points
664 Posts
Re: Server Application Unavailable Message
Feb 14, 2007 06:37 PM|LINK
I agree with your thought about Server Application Unable Message. and I thinks this will helps a lot to others.
Thanks
http://www.girijesh.in/
LEHayes
Member
6 Points
13 Posts
Re: Server Application Unavailable Message
Feb 19, 2007 06:46 AM|LINK
This sounds like a similar issue I am running into. When I build out my web ap in Web Dev 2005, I can see the the web app working fine, as the ASP.NET Development Server pops up and the the program shows up on the site with a port value. My problem is that when I attempt to hit it directly as if from the internet, I get a generic error message that mentions about the web.config file, I recently made a change on the site properties to change from ASP 1.1 to 2.0 now it gives a message "Server Application Unavailable" I follow the instructions according to info on the page and it talks about error 500 in the log file.
I looked in my IIS and I could not find a reference to "application pool". I have multiple sites running on this server (win2k, IE6SP1, assuming IIS5, SQL Express).
This is driving me nuts as I have web pages in the same folder that are not part of the ASP.NET (C#) application and I can view them fine from the browser, but the only way I can see my web app is through the ASP.NET Development Server program using the port addressing it specifies.
LEHayes
Member
6 Points
13 Posts
Re: Server Application Unavailable Message
Feb 19, 2007 06:48 AM|LINK
This sounds like a similar issue I am running into. When I build out my web ap in Web Dev 2005, I can see the the web app working fine, as the ASP.NET Development Server pops up and the the program shows up on the site with a port value. My problem is that when I attempt to hit it directly as if from the internet, I get a generic error message that mentions about the web.config file, I recently made a change on the site properties to change from ASP 1.1 to 2.0 now it gives a message "Server Application Unavailable" I follow the instructions according to info on the page and it talks about error 500 in the log file.
I looked in my IIS and I could not find a reference to "application pool". I have multiple sites running on this server (win2k, IE6SP1, assuming IIS5, SQL Express).
This is driving me nuts as I have web pages in the same folder that are not part of the ASP.NET (C#) application and I can view them fine from the browser, but the only way I can see my web app is through the ASP.NET Development Server program using the port addressing it specifies.
jose_jimenez
Contributor
2504 Points
484 Posts
Re: Server Application Unavailable Message
Feb 20, 2007 12:50 PM|LINK
You may be running a different version of IIS than I. Have you run the aspnet_regiis -s command on your directory from the framework directory?
--JJ
I don't answer personal emails unless I know you or of you. Feel free to post in the forum to get an answer from me.
shadisland
Member
2 Points
1 Post
Re: Server Application Unavailable Message
Mar 22, 2007 02:45 PM|LINK
It sounds like you haven't looked in your Event Viewer (instead of the log file). If you open Control Panel, Administrative Tools, Event Viewer (it's also in Computer Manager) you will see Application Errors that explain some details about the error you are getting. In my case it was a folder permissions problem. I gave the ASPNET user access to my web folders and it worked.
http://www.linkedin.com/in/erikpearson
securesign
Member
20 Points
10 Posts
Re: Server Application Unavailable Message
Apr 01, 2007 06:16 AM|LINK
When you need to run a different version of the .NET Framework on a different Virtual Directories inside the site,or sites; you need to create a different Application Pool and assign for each Virtual Directory or each Site one of the Application Pools that you have created. Then you can make each one of this Virtual Directory or/Site run on a different version of the .NET Framework.
for more information:
http://dotnetqpearl.net/blogs/securesign/archive/2007/03/31/Versions-of-the-.NET-Framework-and-the-IIS6-Application-Pools.aspx
http://dotnetqpearl.net/blogs/default.aspx
Versions of the .NET Framework and the IIS6 Application Pools
Server Application Unavailable IIS6 Application Pool Framework Versions
kckriegs
Contributor
2024 Points
435 Posts
Re: Server Application Unavailable Message
Apr 19, 2007 02:27 PM|LINK
LEHayes, Application pools are not available in IIS5/Win2k.
Your 2.0 app in Web Dev 2005 does not use IIS at all. Rather, it uses an ASP.NET Dev Server that ships with the IDE software. When you start the application in development, it uses this software and assigns a random port.
To prepare your application for deployment, try using the Build/Publish Web Site Interface in VS.NET 2005
The following threads might help you:
Web Dev Server: http://forums.asp.net/thread/1152915.aspx
VS.NET 2005 Compilation: http://forums.asp.net/thread/1148445.aspx
slasi.net
Member
135 Points
93 Posts
Re: Server Application Unavailable Message
Apr 25, 2007 09:58 AM|LINK
Hi,
this post was verry helpfull, thank you
here is a link how to create new application pools : http://msdn2.microsoft.com/en-us/library/ms998297.aspx#paght000009_step4
Ori
kckriegs
Contributor
2024 Points
435 Posts
Re: Server Application Unavailable Message
May 02, 2007 06:50 PM|LINK