When I tried to access my web application deployed to iis 7.5, it shows service unavailable, http error 503. By checking application pool, my application pool shows stopped. In IIS config console, asp.net section is missing, only IIS section and Management
section are there. I created the application pool by using ServerManager class, also tried using wix, both failed. But if I open iis config console and create a pool manually, my web app works fine. Can you point me how to diagnose this issue? I examined my
application pool setting, everything is the same as other application pools.
Thanks for your reply! Which security object? Application pool itself is not a security object, the virtual directory is, but the virtual directory works fine with manually created application pool, with the same user/password.
using (ServerManager sm = new ServerManager())
{
if (sm.ApplicationPools["TestAppPool"] == null)
{
ApplicationPool appPool = sm.ApplicationPools.Add("TestAppPool");
appPool.ManagedPipelineMode = ManagedPipelineMode.Integrated;
appPool.ManagedRuntimeVersion = "V4.0";
appPool.ProcessModel.IdentityType = ProcessModelIdentityType.ApplicationPoolIdentity;
sm.CommitChanges();
}
Site site = sm.Sites[0];
Application app = site.Applications["/TestApp"];
if (app == null)
{
app = site.Applications.Add("/TestApp", "c:\\testapp");
}
//app.ApplicationPoolName = "TestAppPool"; --> This line does not work
app.ApplicationPoolName = "ffff"; --->This line works, ffff is configured in IIS Console
cfpk11
Member
2 Points
8 Posts
Asp.net application does not start because application pool stopped
Dec 02, 2012 08:13 AM|LINK
HostingASPNe...
All-Star
15876 Points
2974 Posts
Re: Asp.net application does not start because application pool stopped
Dec 02, 2012 10:53 AM|LINK
Hello,
The only logical reason is that you have not the right security permissions. You could check also the Server error logs for some clue.
You may also ask your question in the http://forums.iis.net, the same login as here.
Regards
Free ASP.NET Examples and source code.
cfpk11
Member
2 Points
8 Posts
Re: Asp.net application does not start because application pool stopped
Dec 02, 2012 05:10 PM|LINK
cfpk11
Member
2 Points
8 Posts
Re: Asp.net application does not start because application pool stopped
Dec 02, 2012 06:26 PM|LINK
Here is the test code
using (ServerManager sm = new ServerManager())
{
if (sm.ApplicationPools["TestAppPool"] == null)
{
ApplicationPool appPool = sm.ApplicationPools.Add("TestAppPool");
appPool.ManagedPipelineMode = ManagedPipelineMode.Integrated;
appPool.ManagedRuntimeVersion = "V4.0";
appPool.ProcessModel.IdentityType = ProcessModelIdentityType.ApplicationPoolIdentity;
sm.CommitChanges();
}
Site site = sm.Sites[0];
Application app = site.Applications["/TestApp"];
if (app == null)
{
app = site.Applications.Add("/TestApp", "c:\\testapp");
}
//app.ApplicationPoolName = "TestAppPool"; --> This line does not work
app.ApplicationPoolName = "ffff"; --->This line works, ffff is configured in IIS Console
sm.CommitChanges();
}
Can you tell what problem is?