Jump to content

ISAPI deployment with in place DLL replacement.


CastleSoft

Recommended Posts

I thought this might be handy for anyone with an IIS box that needs to update a UniGUI ISAPI dll and not STOP/START the IIS Webservice.

 

Attached is an ISAPILoader.zip file containing the Delphi Source code + Binaries. (source is google).

 

Its easy to use.

 

1) Grab the NON_DEBUG and rename it to the name you like.   (ie..      MySuperApp.dll  )

2) Rename your UNIGUI DLL to the same name with a .RUN extension.   (ie..    MySuperApp.run  )

 

At this point deploy as normal. The ISAPI Loader will load the .RUN file.

 

Now to upgrade the UNIGUI ISAPI DLL, simply place your app with a .UPDATE extension.  (ie.    MySuperApp.update)

 

In < 10 secs it will see the update, unload the old version. Rename the .run file as .backup and rename the .update to .run

 

No requirement for Stopping/Starting the IIS Service to unload the DLL.

 

Andrew

 

Click here for the ISAPILOADER.zip

  • Upvote 3
Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
Hello

I'm testing ISAPI Loader and I came across a problem that I do not understand.

If squeegee normal isapi application, it runs quietly. However when I try to run using the ISAPI Loader it downloads the application and does not run.

The folder where is the application is released with all rights.

I'm testing a windows server 2008 R2 server.

 

I tested on a windows machine 8.1 and worked quietly, just in windows server 2008 could not result.

 

Could you help me?

Tanks

Link to comment
Share on other sites

Hi,

 

Can you check,

did you install unigui extjs runtime on your server ?

 

With my application built on isapi, already operates normally. Is downloaded only use the method described in this post, isapiloader to update the .dll. It seems anything related to security on windows server 2008, as in my local machine on the local IIS server, the update works.

Link to comment
Share on other sites

In tests we conducted in an environment with Windows 8.1 and IIS ran smoothly.

Only in windows server 2008 r2 is that when running the browser, it downloads the inves to run the application.

I saw in some forums someone talking about ISAPI safety criteria, but all I could find to grant permission in IIS I ever did.

Link to comment
Share on other sites

  • 4 years later...
  • 2 weeks later...

@ Sherzod,

do you still have access to a file, which was shared  here?
I am suffering under the situation that I cannot replace cached DLLs running under IIS (Windows Server 2016). The app pool solution does not work proper due to the fact that it clears the complete application cache folder, which then ends in multiple errors on the client side afterwards.

Kind regards,
Kattes

Link to comment
Share on other sites

2 hours ago, Kattes said:

@ Sherzod,

do you still have access to a file, which was shared  here?
I am suffering under the situation that I cannot replace cached DLLs running under IIS (Windows Server 2016). The app pool solution does not work proper due to the fact that it clears the complete application cache folder, which then ends in multiple errors on the client side afterwards.

Kind regards,
Kattes

Hi Kattes,

if you are interested in my solution, it already does this:

https://store.falconsistemas.com.br/?filter=updateriis

image.thumb.png.757c32f2b51548d4da83bb3a238f601b.png

 

Link to comment
Share on other sites

×
×
  • Create New...