SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: ASP.NET restart

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2002
    Location
    Washington D.C
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP.NET restart

    I was wondering if anybody knows of a method to restart an ASP.NET application without restarting the IIS service. I have had luck resaving the web.config file to trick the web server into thinking a change has been to the app. However I do not want my client opening up the web.config file. Can anyone suggest of a better way to accomplish this task?

    Thanks,

    ryan

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,623
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    There are two options here: ASP.NET 2.0 has a some builtin support to recycle the app domain. Or you can write a method to "touch" your app.config file. The former requires full trust (ie: it is not generally supported on shared web hosts) whereas the latter requires write access from the web service account to the web.config file (a bad idea, but usually allowed on shared hosts).

    Unfortunately, there was a blog post recently with code and such, but I can't seem to find it.

    I would also add that you really should not ever need to recycle an ASP.NET application. I tend to set mine up to never recycle from an IIS standpoint and have had no problems with sometimes months long uptimes. In fact, the only reason uptimes have not been longer are because of microsoft patches.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •