Solved

Force IIS to unload extension?

Posted on 1998-12-17
5
343 Views
Last Modified: 2013-11-20
Is there an API call to force IIS to unload my ISAPI extension?  I tried calling TerminateExtension(HSE_TERM_MUST_UNLOAD) but, that didn't work.  If you could point me in the right direction I would appreciate it.
0
Comment
Question by:perrizo
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:wyy_cq
ID: 1326357
1 shutdown the IIS, and restart it  :-D
2 or you can make change in the registry
set "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W3SVC/Parameters/CacheExtensions"
to 0.

This will cause the DLL to be reloaded everytime it is ccessed.

0
 
LVL 1

Author Comment

by:perrizo
ID: 1326358
Well while I debug this would be fine but, I am not going to be debugging this app forever(hopefully).  Reloading the extension every time would be horrible for performance on the web server.  I need to do it in the code.  So I can call a function like Unload so whenever I feel like it I can force my extension to unload.
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
ID: 1326359
No, there isn't a way to do this. You can reconfigure the server's caching setting, but that effects all extensions--not just yours. Plus, as you indicate, it's very bad for performance.

You can't unload extension DLLs on demand in current versions of Internet Information Server.

B ekiM
0
 
LVL 1

Author Comment

by:perrizo
ID: 1326360
I was afraid of that.  Do you know if it is planned for future versions of IIS? Thanks for the input.
0
 
LVL 11

Expert Comment

by:mikeblas
ID: 1326361
I'm sorry; I'm not at liberty to comment on future versions of Microsoft products.

B ekiM


0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 47
Separate into files by filename 12 67
unable to delete all specified values regedit 38 151
Window placement 17 64
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now