Link to home
Start Free TrialLog in
Avatar of directxBOB
directxBOBFlag for Ireland

asked on

Could not delete file 'X' Make sure that the file is not open by another process and is not write-protected.

I am currently getting these errors:

Could not delete file 'c:\WebServices\X.dll'.
Make sure that the file is not open by another process and is not write-protected.

fatal error LNK1181: cannot open input file '..\bin\release\X.lib

What I have:

1. My WebService
2. My Managed C++ Layer
3. My UnManaged C++ Lib

My Webservice makes calls to the Managed C++ Layer which in turn makes the call to the C++ Lib.

What I found was that I was getting:

The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Which was resolved by following:

http://forums.asp.net/p/939729/1142171.aspx


So what I have now is a Directory:

C:\Bin

Where both the Managed and UnManaged code outputs too.. When I do a rebuild I get the above errors. I have a feeling it may be because I am referencing C:\Bin in my PATH Environment Variable but am uncertain.

Anyone have any ideas on how to fix this?
ASKER CERTIFIED SOLUTION
Avatar of josgood
josgood
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of directxBOB

ASKER

All running through VS. There is no external app or webservice running them unless IIS is loading all DLLs in the PATH..

Other than that I am only compiling not actually running the WebService.

Well, the only other thing I can think of is that the file has somehow become marked read-only.

That sure is mysterious.