delphi3000.com - the free delphi knowledge platform
delphi3000.com - the free delphi knowledge platform
Have a look at your member-status

connecting people's knowledge


  - Recent ArticlesRSS feed for Recent Articles on delphi3000.com
  - List of All Articles
  - Top Viewed Articles
  - Articles (+Attachem.)
  - Articles Of Interest
  - Categories
  - Top Uploader
  - Search
  - Index

  - My Home
  - Submit an Article
  - My Articles
  - My Personal Data
  - My Bookmarks
  - Activities
  - Login/Logout

  - Sign Up
  - Why Sign Up
  - Newsletter

  - Press
  - Advertise

  - Contact
  - Feedback



Community
Borland
ClubeDelphi
Dr. Bob
UK-BUG
Delphi Meetings
Planeta Delphi








Share this article with friendsShare this article with friends
Rate this articleRate this article - to keep the quality of delphi3000.com !
Comment this article or read through previous comments (1)


How do I unlock a Active Server Library DLL?Format this article printer-friendly!Bookmark function is only available for registered users!
Product:
Delphi 5.x (or higher)
Category:
Internet / Web
Skill Level:
Scoring:
Last Update:
11/08/2002
Search Keys:
delphi delphi3000 article borland vcl code-snippet COM ASP IIS
Times Scored:
3
Visits:
7105
Uploader: Helmut Dollinger
Company:
Reference: N/A
 
Question/Problem/Abstract:
How to make this a little bit easier during development...
Answer:




At first I thought that the only way to unlock a ASP component DLL was to use the MMC. There is however a better way.

Create a new start menu shortcut:

c:\windows\system\inetsrv\pws.exe /stop /y

It is the /y that does the trick. Not only will it stop PWS, as does the stop button in the Personal Web Manager, but it will also unload the Inetinfo.exe process from memory, unlocking any locked ASP component library DLL's.

This way you can compile your ASP component with Delphi, start your web application and use the just created shortcut to unload the DLL from memory, allowing you to recompile from Delphi without rebooting your computer. A big time saver!

C:\WINDOWS\SYSTEM\inetsrv\inetinfo.exe -e w3svc will restart PWS

Unlocking Active Server Library DLL's under Windows NT

Type net stop iisadmin /y to shutdown the parent service of IIS, IIS Admin. This will also shut down FTP, STMP, and any other services that are children of IIS Admin. It will unload the inetinfo.exe process from memory. If you type only net stop w3svc, to unload just the Web server, inetinfo.exe will not be unloaded.

Type net start w3svc to restart the Web server.






Please rate this article!
Skill level:
BeginnerExpert

Useful:
No!Very!

Overall rating:
PoorExcellent



Comments to this article
Write a new comment
may be of interest too ...
    S7eG n/a (Nov 11 2002 3:03PM)

http://howtodothings.com/showarticle.asp?article=176


Respond














 
Sign up to consume product discounts for Bronze memberships !

read more


   


  Community Ad of
E. DSpirito
 
   














 







     
  Copyright © 2000 - 2007 delphi3000.com - All rights reserved. Terms of use. || Privacy
delphi3000.com is a service by bluestep.com IT-Services GmbH (Vienna)