DOCUMENT:Q189540 18-JUN-2001 [vbwin] TITLE :PRB: Access Denied Error on WebClass Files PRODUCT :Microsoft Visual Basic for Windows PROD/VER::6.0 OPER/SYS: KEYWORDS:kbInternet kbVBp kbVBp600 kbVS600 kbWebClasses kbGrpDSASP _IK kbIIS ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Professional Edition for Windows, version 6.0 - Microsoft Visual Basic Enterprise Edition for Windows, version 6.0 ------------------------------------------------------------------------------- SYMPTOMS ======== You receive an "Access to the file... denied" error on WebClass files. Internet Information Server (IIS) loads files and sometimes they are still loaded when you try to write to these files from the Visual Basic IDE that will cause this error to appear. CAUSE ===== IIS has the file cached so you receive the error message "Access to the file... denied." RESOLUTION ========== To unload the DLL or other files that you were denied access to, stop Internet Information Server. There are several ways to stop Internet Information Server: - In Visual Basic, while you are in the WebClass designer, select the toolbar item "Stop Internet Information Server". - In the Windows Control Panel, select Services and Stop the IIS Admin Service. - At a command prompt, type the following command: "net stop iisadmin /y" (without the quotation marks) On a Microsoft Windows 2000-based computer, type the following command: "iisreset" (without the quotation marks) NOTE: Stopping the Web site from the Microsoft Management Console (MMC) does not cause IIS to unload these files. STATUS ====== This behavior is by design. REFERENCES ========== Please see the following Microsoft Knowledge Base article for more information on WebClasses: Q189539 : INFO: VB 6.0 Readme Part 8: WebClass Designer Issues Additional query words: ====================================================================== Keywords : kbInternet kbVBp kbVBp600 kbVS600 kbWebClasses kbGrpDSASP _IK kbIIS Technology : kbVBSearch kbAudDeveloper kbZNotKeyword6 kbZNotKeyword2 kbVB600Search kbVB600 Version : :6.0 Issue type : kbprb ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2001.