views:

52

answers:

1

How should I "properly" restart the ASP.NET (IIS 5.1) server in order to refresh the loaded assemlies? I tried several things, but without success:

Right now, every time I have a new version, I publish my site from the development machine, and then manually copy assemblies into the /bin folder - but I need to restart the server after every update in order to have my web site actually updated. Aspx pages update immediatelly (I can change them and see them update on-the-fly), but code-behind assemblies are not reloaded until I actually restart the machine.

To be sure of this, I am displaying the SVN revision number (hardcoded in my assembly during build time): <% Response.Write(SvnInfo.CurrentRev); %>

[Edit] Oooops - my mistake after all. It turns out that Publish command does not rebuild assemblies every time. I rebuilt the release version manually, published it, and it was running as soon as I copied assemblies to the bin folder.

A: 

Oooops - my mistake after all. It turns out that Publish command in Visual Studio does not rebuild assemblies every time.

I rebuilt the release version manually, published it, and it was running without problems as soon as I copied assemblies to the bin folder.

Groo
Good that you found it out.
Kangkan