Help and Support
 

powered byLive Search

PRB: Permission Denied Error When Attempting to Recompile an ASP DLL

Article ID:200260
Last Review:May 2, 2006
Revision:4.0
This article was previously published under Q200260
On This Page

SYMPTOMS

When attempting to recompile a custom-built ActiveX dynamic link library (DLL) on a Windows 95 or Windows 98 computer that is running Microsoft Personal Web Server (PWS) 4.0, you may get an error message similar to the following:
Permission denied: '<FilePath>'
Where <FilePath> is the path to the Active Server Page (ASP) DLL.

You may see an error message similar to the following if you attempt to rename the DLL in Windows Explorer:
Cannot rename <FileName>: Access is denied.

Make sure the disk is not full or write-protected
and that the file is not currently in use.
Where <FileName> is the filename of the DLL.

You may see an error message similar to the following if you attempt to delete the DLL in Windows Explorer:
Cannot delete <FileName>: Access is denied

Make sure the disk is not full or write-protected
and that the file is not currently in use.

Back to the top

CAUSE

When an ASP instantiates a custom-built ActiveX DLL using
Server.CreateObject("ActiveX.Class")
the DLL gets instantiated within the Web services process, in this case, PWS. PWS does not release the DLL once the DLL is instantiated.

Back to the top

RESOLUTION

Stopping and restarting PWS from the SysTray icon does not release the lock on the ActiveX DLL that is instantiated by an Active Server Page (ASP).

In order to release the lock on a DLL, PWS must be manually stopped using the command prompt. By default, Pws.exe resides in the folder C:\Windows\System\Inetsrv. To stop PWS, type the following command:
windows\system\inetsrv\pws.exe /stop
You can then restart PWS manually restarted from the Command Prompt by using the following command:
windows\system\inetsrv\pws.exe /start
Once PWS is stopped, this will release the ActiveX DLL. Recompile the DLL, if necessary. Once PWS restarts, it will again lock the DLL when it gets instantiated by an ASP.

Back to the top

Another Resolution

At the run line, type: net stop iisadmin /y and then press Enter. This will stop all services while running the make on the DLL.

After the make DLL is complete, type: net start w3svc from the run line. Your services will be up again.

Back to the top

STATUS

This behavior is by design.

Back to the top

REFERENCES

For the latest Microsoft Knowledge Base articles and other support information on Microsoft Visual InterDev and Active Server Pages, see the following Web page on the Microsoft Technical Support site:
http://support.microsoft.com/search/default.aspx?qu=vinterdev (http://support.microsoft.com/search/default.aspx?qu=vinterdev)

Back to the top


APPLIES TO
Microsoft Active Server Pages 4.0

Back to the top

Keywords: 
kberrmsg kbprb kbsecurity KB200260

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.