Maybe i can provide more information to solve this.
All applications are located under "IIS:\Default Web Site". Although they are using different Application Pools, they all are under the Default Web Site (in different virtual directories). Its looking like this in the IIS Manager:
====================================
Sites
- Default Web Site
- 1 (virtual directory)
- app1 (Application) (using App Pool 1)
- 2 (virtual directory)
- app2 (Application) (using App Pool 2)
====================================
Once adding a virtual directory (e.g. 3) to the "Default Web Site" the applications 1 & 2 are getting a Dispose. Is it meant to be like this? Am i right that manipulating the "Default Web Site" by adding the VD is causing a restart of all Applications?
I hope i got the idea now?
If i am right, how could we prevent this behaviour?
yes, im still on it =) I could break down my problem to the following scenario:
Maybe i got something wrong. First i thought it is an app-pool recycle but with a simplified test i build an example without any applications and additional app-pools.Its just one straight forward virtual directory which contains 2 aspx files, which are
handling a session state.
Default Web Site
1 (virtual directory) (d:\TestAppDomains\1\)
session1.aspx (Sets current timestamp to session variable and redirects to session2.aspx)
session2.aspx (displays session variable)
By calling the localhost/1/sessions1.aspx i can see the timestamp. After adding a second virtual directory (e.g. "2" (d:\TestAppDomains\2)) and
refreshing the page the session is gone, meaning the variable is null.
I guess, my "recycling" applications are tied together with the session loss in this example. Is my whole AppDomain restarting here, and if so, how can i see this?
a.pawi
10 Posts
Re: Application Pools restarting when adding virtual directory
Feb 02, 2012 03:14 PM|LINK
Maybe i can provide more information to solve this.
All applications are located under "IIS:\Default Web Site". Although they are using different Application Pools, they all are under the Default Web Site (in different virtual directories). Its looking like this in the IIS Manager:
====================================
Sites
- Default Web Site
- 1 (virtual directory)
- app1 (Application) (using App Pool 1)
- 2 (virtual directory)
- app2 (Application) (using App Pool 2)
====================================
Once adding a virtual directory (e.g. 3) to the "Default Web Site" the applications 1 & 2 are getting a Dispose. Is it meant to be like this? Am i right that manipulating the "Default Web Site" by adding the VD is causing a restart of all Applications?
I hope i got the idea now?
If i am right, how could we prevent this behaviour?
Thanks in advance.
HCamper
8048 Posts
Re: Application Pools restarting when adding virtual directory:IIS Manager-Content-View
Feb 02, 2012 05:52 PM|LINK
Hi,
Thanks for the updated information :D.
The content sites directories and applications in IIS 7 server from the IIS Manager view.
Its looking like this in the IIS Manager:
IIS Manager information and settings with Features and Views:
All applications are using the "Default Web Site" image http://learn.iis.net/file.axd?i=20 Featues View.
The New Look and Feel http://learn.iis.net/page.aspx/113/getting-started-with-iis-manager/#New
http://learn.iis.net/page.aspx/113/getting-started-with-iis-manager/#Content image http://learn.iis.net/file.axd?i=25 change from
Features to Content View then it might be easier to manage and see the settings ?
Using different Application Pools: image http://learn.iis.net/file.axd?i=2458 Application Pool settings.
They all are under the "Default Web Site" using different "virtual directories"
In IIS 7 sites applications virtual directories the content is the same. More Features and settings configuration in IIS Manager.
This existed in earlier versions of IIS changes in IIS 7 http://learn.iis.net/page.aspx/110/changes-in-security-between-iis-60-and-iis-7-and-above/
The sites applications virtual directories now work together in a hierarchical relationship.
Sites Applications and Virtual directories http://learn.iis.net/page.aspx/150/understanding-sites-applications-and-virtual-directories-on-iis/
What is virtual ? http://blogs.iis.net/tomkmvp/archive/2008/12/11/what-is-virtual.aspx IIS Team blogs.
http://learn.iis.net/page.aspx/624/application-pool-identities/ Appplication Pools settings.
http://learn.iis.net/page.aspx/140/understanding-built-in-user-and-group-accounts-in-iis/ Built-In Accounts Groups in IIS Manager.
I hope this view of the settings and content helps.
I think the above should help in the behavior.
Update this to help in the understanding.
TIA,
Regards,
Martin
Community Member Award 2011
a.pawi
10 Posts
Re: Application Pools restarting when adding virtual directory:IIS Manager-Content-View
Feb 03, 2012 09:32 AM|LINK
Hi and thanks again for your time,
i checked the configuration and it seems to be okay.
Application 1, which is located in VD 1 is Using Appool 1.
The Root Application is using the DefaultAppPool.
What do you mean with "Dispose" check setting for each App pool? - i checked it, the (important) settings are as following:
.NET = v4
Process Model Identity = ApplicationPoolIdentity
Recycling Disable Overlapping Recycle = True
Recycling Disable Recycling for Configuration Changes = True
any other settings interesting?
Tried to changed the Process Model and checked the .NET Version (v4) as well. Nothing seems to help.
Concerning your links: Im not sure if this is a security related problem, rather a configuration change problem?
HCamper
8048 Posts
Re: Application Pools restarting when adding virtual directory:IIS Manager-Content-View
Feb 03, 2012 04:20 PM|LINK
Hi,
A birds eye view of posts to this point : Current Status based on posts: The Topic and questions are complex,
Which of the items to pick which is configuration security or documentation or more details descriptions ?
Nothing seems to help. Not sure where to help at this point. I suggest make this less complex to answer.
Your questions are important and need answers it appears there are more questions than answers.
May be if you take each of the problems and create posts and threads to get suggestions from many users ?
Then after you have the answers from the threads update this one to put it back together as a solution.
Regards,
Martin
Community Member Award 2011
a.pawi
10 Posts
Re: Application Pools restarting when adding virtual directory:IIS Manager-Content-View
Mar 21, 2012 03:31 PM|LINK
Hi again,
yes, im still on it =) I could break down my problem to the following scenario:
Maybe i got something wrong. First i thought it is an app-pool recycle but with a simplified test i build an example without any applications and additional app-pools.Its just one straight forward virtual directory which contains 2 aspx files, which are handling a session state.
session virtual directory IIS7.5 recycling