By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,544 Members | 2,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,544 IT Pros & Developers. It's quick & easy.

does iis restart project if any dll changes

P: n/a
Hi,

i am newbie to iis.

I have an application which uses class libraries hosted on iis 5.1.
Now, while my application running if i change any dlls and copy them to
server's relevant virtual directory whether IIS restarts complete
project or do i have to restart iis manually?

Thanks in advance.

/mc.

Nov 19 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
No, you don't have to restart IIS manually.

ASP.NET will detect if your dll/assembly was modified,
and will restart your ASP.NET application for you.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"mustafac" <mu*************@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Hi,

i am newbie to iis.

I have an application which uses class libraries hosted on iis 5.1.
Now, while my application running if i change any dlls and copy them to
server's relevant virtual directory whether IIS restarts complete
project or do i have to restart iis manually?

Thanks in advance.

/mc.

Nov 19 '05 #2

P: n/a
IIS will not restart, nor should you restart it.

The asp.net application will restart, and it will do it on its own.

"mustafac" <mu*************@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Hi,

i am newbie to iis.

I have an application which uses class libraries hosted on iis 5.1.
Now, while my application running if i change any dlls and copy them to
server's relevant virtual directory whether IIS restarts complete
project or do i have to restart iis manually?

Thanks in advance.

/mc.

Nov 19 '05 #3

P: n/a
First thanks for the kind reply.

ok, you mean asp.net detects any change over my dlls but how it handles
this mechanism.

If any dll changes whether it reloads all the dlls of application or
it just replaces last modified dlls. Can you suggest me any article
or something about how iis handles dynamic dll change?

Thanks in advance.

/mc.

Nov 19 '05 #4

P: n/a
asp.net uses a filewatcher (requires ntfs file system to work), to detect
file changes. if any of the files used by the application are modified

1) recompiles the site
2) load a new appdomain
3) stops sending requests to the old appdomain
4) unloads the old appdomain. when all pending requests complete

-- bruce (sqlwork.com)
"mustafac" <mu*************@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
First thanks for the kind reply.

ok, you mean asp.net detects any change over my dlls but how it handles
this mechanism.

If any dll changes whether it reloads all the dlls of application or
it just replaces last modified dlls. Can you suggest me any article
or something about how iis handles dynamic dll change?

Thanks in advance.

/mc.

Nov 19 '05 #5

P: n/a
Bruce explained what happens :

ASP.NET :

1) recompiles the site
2) load a new appdomain
3) stops sending requests to the old appdomain
4) unloads the old appdomain. when all pending requests complete

I'd only add a

5) starts sending new requests to the recompiled application.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"mustafac" <mu*************@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
First thanks for the kind reply.

ok, you mean asp.net detects any change over my dlls but how it handles
this mechanism.

If any dll changes whether it reloads all the dlls of application or
it just replaces last modified dlls. Can you suggest me any article
or something about how iis handles dynamic dll change?

Thanks in advance.

/mc.

Nov 19 '05 #6

P: n/a
ok bruce,

you mean :asp.net uses a filewatcher (requires ntfs file system to
work)

Is it a daemon thread? if it is can i set its check interval if yes
how?

on other hand lets say i have another application which is hosted on
iis 5.1 and uses .Net remoting with its class libraries. if i update
any of my class libraries hosted on iis how iis works here?

thanks in advance.

Nov 19 '05 #7

P: n/a
On 19 Jul 2005 11:19:14 -0700, "mustafac" <mu*************@gmail.com>
wrote:
ok bruce,

you mean :asp.net uses a filewatcher (requires ntfs file system to
work)

No, it doesn't require NTFS to work.
Is it a daemon thread? if it is can i set its check interval if yes
how?


I don't know of a way to set the interval. The FileSystemWatcher uses
notification APIs in Windows that don't require a daemon thread.
--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.