 |
|
 |
|
Next: HTTP Error 403.2 - Forbidden: Read access is deni..
|
| Author |
Message |
External

Since: Aug 17, 2006 Posts: 12
|
(Msg. 1) Posted: Mon Jul 23, 2007 6:52 am
Post subject: how does IIS detect new code? Archived from groups: microsoft>public>inetserver>iis (more info?)
|
|
|
|
| In the scenario where an application is running and in memory, serving users,
then new code is deployed to the server (e.g. using ms application center),
how does IIS know to pick up and start using the new code?
|
>> Stay informed about: how does IIS detect new code? |
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2003 Posts: 2901
|
(Msg. 2) Posted: Mon Jul 23, 2007 12:02 pm
Post subject: Re: how does IIS detect new code? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
IIS subscribes to Windows file change notifications, which notifies
subscribers that the file(s) have changed.
Cheers
Ken
--
My IIS Blog: www.adOpenStatic.com/cs/blogs/ken
"Jason" <Jason.DeleteThis@discussions.microsoft.com> wrote in message
news:6AD64CC3-BBEF-493A-8826-B2A1CA13B3EF@microsoft.com...
> In the scenario where an application is running and in memory, serving
> users,
> then new code is deployed to the server (e.g. using ms application
> center),
> how does IIS know to pick up and start using the new code? >> Stay informed about: how does IIS detect new code? |
|
| Back to top |
|
 |  |
External

Since: Aug 17, 2006 Posts: 12
|
(Msg. 3) Posted: Mon Jul 23, 2007 12:02 pm
Post subject: Re: how does IIS detect new code? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
so the app pool does not need to recycle to start using the new code then?
is it a best practice to recycle following a code change? or is IIS
supposed to be robust enought to handle that?
"Ken Schaefer" wrote:
> IIS subscribes to Windows file change notifications, which notifies
> subscribers that the file(s) have changed.
>
> Cheers
> Ken
>
> --
> My IIS Blog: www.adOpenStatic.com/cs/blogs/ken
>
> "Jason" <Jason RemoveThis @discussions.microsoft.com> wrote in message
> news:6AD64CC3-BBEF-493A-8826-B2A1CA13B3EF@microsoft.com...
> > In the scenario where an application is running and in memory, serving
> > users,
> > then new code is deployed to the server (e.g. using ms application
> > center),
> > how does IIS know to pick up and start using the new code?
>
> >> Stay informed about: how does IIS detect new code? |
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2003 Posts: 2901
|
(Msg. 4) Posted: Mon Jul 23, 2007 8:57 pm
Post subject: Re: how does IIS detect new code? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I don't think it's a matter of "IIS being robust enough" - IIS does not scan
the disk continuously looking for file changes. That would be a huge
performance issue. IIS instead is notified by Windows when files change, and
when it has been notified, it reads in the new file and should invalidate
any cached copies.
Assuming your browser is not caching anything, you should be able to hit
"refresh" in your browser and you'll see the new content.
Recycling your app pool shouldn't be necessary - that breaks all existing
connections, you lose any in-memory session data etc. Unless you have a
reason to do this, I don't think you should be doing so.
Cheers
Ken
"Jason" <Jason DeleteThis @discussions.microsoft.com> wrote in message
news:22070F06-6188-4E33-81EC-166B93FC4FE7@microsoft.com...
> so the app pool does not need to recycle to start using the new code then?
>
> is it a best practice to recycle following a code change? or is IIS
> supposed to be robust enought to handle that?
>
> "Ken Schaefer" wrote:
>
>> IIS subscribes to Windows file change notifications, which notifies
>> subscribers that the file(s) have changed.
>>
>> Cheers
>> Ken
>>
>> --
>> My IIS Blog: www.adOpenStatic.com/cs/blogs/ken
>>
>> "Jason" <Jason DeleteThis @discussions.microsoft.com> wrote in message
>> news:6AD64CC3-BBEF-493A-8826-B2A1CA13B3EF@microsoft.com...
>> > In the scenario where an application is running and in memory, serving
>> > users,
>> > then new code is deployed to the server (e.g. using ms application
>> > center),
>> > how does IIS know to pick up and start using the new code?
>>
>> >> Stay informed about: how does IIS detect new code? |
|
| Back to top |
|
 |  |
External

Since: Nov 01, 2007 Posts: 309
|
(Msg. 5) Posted: Tue Jul 24, 2007 3:25 am
Post subject: Re: how does IIS detect new code? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Your question is actually about web application deployment, and the
specifics depend on the web application itself. This means that IIS
has no web application deployment features.
For example, if it is an ASP.Net application, changes to /bin DLLs
and .aspx pages are dynamically detected and handled. This is a nice
feature of the ASP.Net platform -- detecting changes in binaries and
dynamically reloading the changes -- but it is also a problem because
it keeps the older version loaded as well for garbage collection.
If it is an ISAPI application, then you *must* unload the ISAPI DLL
from memory before you can replace it with the new binary. This can be
done by recycling the application pool(s) that load the ISAPI DLL.
So, I would not say it is a best practice to recycle following a code
change, nor is the question about IIS robustness. It is about the
developer knowing the deployment needs of his application and how to
fulfill them. Stopping the Application Pool, making changes, and
Restarting the Application Pool is a consistent way to ensure
application changes propagate, but it may not be the best nor only
choice for you situation.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Jul 23, 7:14 am, Jason <Ja... DeleteThis @discussions.microsoft.com> wrote:
> so the app pool does not need to recycle to start using the new code then?
>
> is it a best practice to recycle following a code change? or is IIS
> supposed to be robust enought to handle that?
>
>
>
> "Ken Schaefer" wrote:
> > IIS subscribes to Windows file change notifications, which notifies
> > subscribers that the file(s) have changed.
>
> > Cheers
> > Ken
>
> > --
> > My IIS Blog:www.adOpenStatic.com/cs/blogs/ken
>
> > "Jason" <Ja... DeleteThis @discussions.microsoft.com> wrote in message
> >news:6AD64CC3-BBEF-493A-8826-B2A1CA13B3EF@microsoft.com...
> > > In the scenario where an application is running and in memory, serving
> > > users,
> > > then new code is deployed to the server (e.g. using ms application
> > > center),
> > > how does IIS know to pick up and start using the new code?- Hide quoted text -
>
> - Show quoted text - >> Stay informed about: how does IIS detect new code? |
|
| Back to top |
|
 |  |
External

Since: Aug 17, 2006 Posts: 12
|
(Msg. 6) Posted: Tue Jul 24, 2007 6:02 am
Post subject: Re: how does IIS detect new code? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
so short of ISAPI code, it shouldn't be needed.
what about if the deployment changes the framework from 1.1 to 2.0
does that cause IIS to recycle automatically? or does it do it all on the
fly as well?
"David Wang" wrote:
> Your question is actually about web application deployment, and the
> specifics depend on the web application itself. This means that IIS
> has no web application deployment features.
>
> For example, if it is an ASP.Net application, changes to /bin DLLs
> and .aspx pages are dynamically detected and handled. This is a nice
> feature of the ASP.Net platform -- detecting changes in binaries and
> dynamically reloading the changes -- but it is also a problem because
> it keeps the older version loaded as well for garbage collection.
>
> If it is an ISAPI application, then you *must* unload the ISAPI DLL
> from memory before you can replace it with the new binary. This can be
> done by recycling the application pool(s) that load the ISAPI DLL.
>
> So, I would not say it is a best practice to recycle following a code
> change, nor is the question about IIS robustness. It is about the
> developer knowing the deployment needs of his application and how to
> fulfill them. Stopping the Application Pool, making changes, and
> Restarting the Application Pool is a consistent way to ensure
> application changes propagate, but it may not be the best nor only
> choice for you situation.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
>
>
>
>
> On Jul 23, 7:14 am, Jason <Ja....TakeThisOut@discussions.microsoft.com> wrote:
> > so the app pool does not need to recycle to start using the new code then?
> >
> > is it a best practice to recycle following a code change? or is IIS
> > supposed to be robust enought to handle that?
> >
> >
> >
> > "Ken Schaefer" wrote:
> > > IIS subscribes to Windows file change notifications, which notifies
> > > subscribers that the file(s) have changed.
> >
> > > Cheers
> > > Ken
> >
> > > --
> > > My IIS Blog:www.adOpenStatic.com/cs/blogs/ken
> >
> > > "Jason" <Ja....TakeThisOut@discussions.microsoft.com> wrote in message
> > >news:6AD64CC3-BBEF-493A-8826-B2A1CA13B3EF@microsoft.com...
> > > > In the scenario where an application is running and in memory, serving
> > > > users,
> > > > then new code is deployed to the server (e.g. using ms application
> > > > center),
> > > > how does IIS know to pick up and start using the new code?- Hide quoted text -
> >
> > - Show quoted text -
>
>
> >> Stay informed about: how does IIS detect new code? |
|
| Back to top |
|
 |  |
External

Since: Oct 08, 2003 Posts: 200
|
(Msg. 7) Posted: Tue Jul 24, 2007 8:10 am
Post subject: Re: how does IIS detect new code? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
iis does not recycle on its own. if you deploy new code written for aspnet
2, you must configure the virtual site/directory to use the 2.0 framework.
also, you must have a separate app pool for aspnet 2.0 apps and aspnet 1.1
apps, as they will clobber each other.
"Jason" <Jason.TakeThisOut@discussions.microsoft.com> wrote in message
news:D8E6CF06-0CB8-411A-AD7E-981E6F563CAB@microsoft.com...
> so short of ISAPI code, it shouldn't be needed.
>
> what about if the deployment changes the framework from 1.1 to 2.0
>
> does that cause IIS to recycle automatically? or does it do it all on the
> fly as well?
>
> "David Wang" wrote:
>
>> Your question is actually about web application deployment, and the
>> specifics depend on the web application itself. This means that IIS
>> has no web application deployment features.
>>
>> For example, if it is an ASP.Net application, changes to /bin DLLs
>> and .aspx pages are dynamically detected and handled. This is a nice
>> feature of the ASP.Net platform -- detecting changes in binaries and
>> dynamically reloading the changes -- but it is also a problem because
>> it keeps the older version loaded as well for garbage collection.
>>
>> If it is an ISAPI application, then you *must* unload the ISAPI DLL
>> from memory before you can replace it with the new binary. This can be
>> done by recycling the application pool(s) that load the ISAPI DLL.
>>
>> So, I would not say it is a best practice to recycle following a code
>> change, nor is the question about IIS robustness. It is about the
>> developer knowing the deployment needs of his application and how to
>> fulfill them. Stopping the Application Pool, making changes, and
>> Restarting the Application Pool is a consistent way to ensure
>> application changes propagate, but it may not be the best nor only
>> choice for you situation.
>>
>>
>> //David
>> http://w3-4u.blogspot.com
>> http://blogs.msdn.com/David.Wang
>> //
>>
>>
>>
>>
>>
>>
>> On Jul 23, 7:14 am, Jason <Ja....TakeThisOut@discussions.microsoft.com> wrote:
>> > so the app pool does not need to recycle to start using the new code
>> > then?
>> >
>> > is it a best practice to recycle following a code change? or is IIS
>> > supposed to be robust enought to handle that?
>> >
>> >
>> >
>> > "Ken Schaefer" wrote:
>> > > IIS subscribes to Windows file change notifications, which notifies
>> > > subscribers that the file(s) have changed.
>> >
>> > > Cheers
>> > > Ken
>> >
>> > > --
>> > > My IIS Blog:www.adOpenStatic.com/cs/blogs/ken
>> >
>> > > "Jason" <Ja....TakeThisOut@discussions.microsoft.com> wrote in message
>> > >news:6AD64CC3-BBEF-493A-8826-B2A1CA13B3EF@microsoft.com...
>> > > > In the scenario where an application is running and in memory,
>> > > > serving
>> > > > users,
>> > > > then new code is deployed to the server (e.g. using ms application
>> > > > center),
>> > > > how does IIS know to pick up and start using the new code?- Hide
>> > > > quoted text -
>> >
>> > - Show quoted text -
>>
>>
>> >> Stay informed about: how does IIS detect new code? |
|
| Back to top |
|
 |  |
| Related Topics: | detect IIS installation - Hi, trying to detect if IIS is installed before deploying a .NET web application locally. (Unfortuneatly, VS setup tool checks for Framework first and then for IIS.) Tried s.th. like this: Set IIsObject = GetObject("IIS://localhost/w3svc") ...
Unable to Detect OS - HI, I have just installed Win NT Server on at Netfinity 5500. I have upgraded to FP 6.0. I am now trying to install the option pack that comes with NT Server but it keeps coming up with unable to detect OS when going through the setup. I tells me it..
WQL to detect if IIS is present - I'm a noob on WQL and looking for some direction. I want to use the Group Policy Management Console WMI filtering capability to only apply IF it detects IIS (or SQL) is installed. I see that the WMI root\MicrosoftIISv2 node is present when IIS is..
SSL Detect Redirect - I would like to find a way to detect if our SSL certificate is installed locally on the clients computer and redirect based on if it's present or not. We self assign certificates and do not have the need to buy one. Since the release of IE7, users are no...
Detect if user on Domain - I wonder if anyone can help... I am trying to detect if a user to our site is on the domain or not, without asking them, and without having a login box pop-up. We tried activating "Anoymous Access" and "Integrated Security" and then ... |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|