We help IT Professionals succeed at work.
Get Started

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

directxBOB
directxBOB asked
on
856 Views
Last Modified: 2012-06-21
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?
Comment
Watch Question
Top Expert 2007
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE