>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.