does iis restart project if any dll changes

M

mustafac

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.
 
J

Juan T. Llibre

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.
 
M

Marina

IIS will not restart, nor should you restart it.

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

mustafac

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.
 
B

Bruce Barker

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)
 
J

Juan T. Llibre

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.
 
M

mustafac

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.
 
S

Scott Allen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top