all groups > dotnet web services > april 2006 >
You're in the

dotnet web services

group:

Files are locked after updating web reference


Files are locked after updating web reference George
4/5/2006 1:32:02 PM
dotnet web services:
I have configured a SchemaImporterExtension in machine.config, which, when I
choose Add/Update Web Reference in Visual Studio 2005, iterate through all
the referenced assemblies by the current project to resolve types defined in
the wsdl. It works beautiful in our development enviorenment, except that
every time I execute a Add/Update action, some assembly files are locked and
trying to re-build the solution fails with error: unable to copy file
"...\xxx.dll" to "...". The process cannot access ...

Does anyone knows what is going on? How can I explicitly release these files?

Your help is greatly appreciated.

RE: Files are locked after updating web reference George
4/7/2006 6:45:01 AM
I have a workaround for this problem:

Instead of loading the assemblies from the files directly, I open a
FileStream and read the contents of an assembly file into a byte array and
AddThis Social Bookmark Button