DLL cannot be copied into run directory

  • Thread starter Thread starter pdavis68
  • Start date Start date
P

pdavis68

You'll probably need to shutdown and restart the IIS process to get it to
release the DLL. I've run into this from time to time with ASP.NET apps.

Pete
 
Hello all,

I am constantly frustrated when compiling my .Net applications by Access
Denied and "DLL cannot be copied" errors. Right now I am dogged by a
recurring "... cannot be copied ino the run directory" error, relating to a
DLL and PDB file from one of my projects in the solution.

I have already disabled Indexing and my Virus Checker. There was a problem
in 1.0 with Web applications having a trailing slash at the end of the root
folder, but mine doesn't, so that's not the problem either.

I am running Framework 1.1.4322 in Visual Studio 7.1.3088. I am developing
in C# and my solution starts with a Web Application. The whole lot is
running on Windows 2000 Server, Service Pack 4.

Can anyone help?

Cheers,

Paul.
 
I seem to have found the problem: I am loading the assembly as an instance
of the Assembly class and not releasing the reference to the assembly
afterwards.
 
Back
Top