Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File Access Denied
Message
De
06/01/2001 18:04:10
 
 
À
06/01/2001 11:13:33
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00460208
Message ID:
00460265
Vues:
12
>Hi,
>I am developing a COM object as a DLL. I compile the project and test it in an ASP web page. If I try to recompile it, I get the following error message:
>
>File Access Denied
>
>In the ASP page, I SET the reference variable to this COM object to NOTHING at the end of the page.
>
>What am I doing wrong?? It works if I reset the computer. I even tried Unregistering the COM DLL with REGSVR32 /U but still the same error.
>

In all probability, you'll need to stop the web server so that the DLL is released by the server. Rather than using the DLL directly from the location it's being compiled into, try placing it in a different directory before and registering it, or build it into a separate directory, and copy it where it's needed, once you're certain that the old copy is not in use (you can use the VerFindFile() Win32 API function to determine exactly where it should get installed, and lets you know if problems such as when an old version is now loaded, preventing replacement or registration, or not having appropriate rights and permissions for the file system or registry. IAC, either solution gets around the issue of building the new component, since even if a copy is now in use, or requires deployment by a more privileged user, the copy you create isn't opened by the web server, which is the real cause of the problem.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform