Stopping and Starting the Application Pool in IIS 6

Hi,

We use IIS 6 for our delphi web applications. When we do a release (amongst other things) we stop and start the IIS Application Pool that the web application belongs to in IIS. However their are no Stop/Start Application Pool Action Types in FinalBuilder to do this.

 

We need to stop/start the application Pool so that the newly built DLL that we copy accross is loaded and run, otherwise the existing DLL which was already their keeps running. This is verified as I display the version number on one of the web pages.

I am currently using the action types of Stop Website (IIS 6), Unload IIS Application (IIS 6) to close the web site so that I can update it. Once I have copied over the new DLL i use the Start Website (II6) action type to start the website.

I have tried using Delete/Create Application Pool (IIS 6) but get the error 'The library, drive, or media pool must be empty to perform this operation.' when Create Application Pool gets executed. Really I would not like to delete and create Application Pools as I want to keep the settings I manually created for them. I don't want to use Stop/Start WWW Service as there are other websites and I don't want these to be restarted.

 

 

Maybe I am approaching this the wrong way but how can I go about stopping and starting the Application Pool so that the new DLL is used?

Thanks

Jeff

Hi Jeff,

I’ll add this to the todo list to investigate - at the moment you’ll have to continue to start/stop iis unfortunately.

cheers,
.t8

Cool, thanks for that.

Hi Tate,

Have you had a chance to look at this request (stopping and starting the application pool in IIS6) yet?

Jeff

Sorry, we haven't had time to look at this yet.

You should be able to start/stop the application pool using either script or the command line utility, here are a couple of links to get you started:

http://blog.crowe.co.nz/archive/2007/08/20/Starting-and-Stopping-a-Web-Site-And-Application-Pool.aspx

http://technet2.microsoft.com/windowsserver2008/en/library/cc989589-3b9e-44ed-805c-7f6a5adf70d41033.mspx?mfr=true

 

hth.