Reputation: 51292
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:
web.config
fileiisreset
gacutil
anyway)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.
Upvotes: 2
Views: 2886
Reputation: 51292
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.
Upvotes: 2