Page 1 of 1

The process cannot access the file because it is being used

Posted: Tue Jan 13, 2015 4:10 pm
by badgerb
I have a VS 2012 solution and I was using the "free" version of InstallAware, version 18. I can't get the InstallAware build to finish due to this error:

Error during build: Cannot open file "C:\Program Files (x86)\Microsoft Visual Studio 11.0\ReportViewer\Microsoft.ReportViewer.WinForms.dll". The process cannot access the file because it is being used by another process

I have reviewed a few other posts, but none seem to propose a solution that works. I have just downloaded the latest version (X2). I uninstalled the prior version first, then loaded VS2012 and tried to do a setup right out of the box, same error. This file does exists (Microsoft.reportviewer.winforms.dll) and its not "in use" in that I can copy it just fine using explorer and I can even temporarily rename it. I did check (saw a case here that said to) and the parent folder (reportviewer) does have readonly applied (but mixed i.e. square box not a full check). I can unapply it but it just go back to mixed. I would note howwever that the file in question (Microsoft.ReportViewer.WinForms.dll) itself does not carry the readonly permission. And even if it was... doesn't InstallAware just need to make a copy anyhow?

Re: The process cannot access the file because it is being u

Posted: Wed Jan 14, 2015 12:10 pm
by FrancescoT
Dear User,

if you post a very minimal Visual Studio project that can be used to replicate the issue, I'll try to verify what happens.

Regards