Dear Developers --
Please help.
How can I avoid the DLL locking issue noted below?
(Note that I am using VS 2012 on Win 7, all patched.)
(Note that the error goes away if I restart VS.)
---------------------------
Microsoft Visual Studio---------------------------Multiple errors occurred during the operation, the first of which is displayed below. A full error list is available in the Output Window. C:\Mcp\MCP Plus\MadisonCableProgram\Presentation\MCPScreens\bin\Infragistics4.Shared.v13.1.dll:
Access to the path 'C:\MyProject\bin\Infragistics4.Shared.v13.1.dll' is denied.---------------------------OK ---------------------------
Thanks.
-- Mark Kamoski
Hi Mark,
Seems that something in your VS is keeping handles of some control/ class or something that is using Infragistics Shared dll. Generally this is issue with the VS and I have seen few times in various environments where I have used custom libraries. In this scenario Visual Studio keeps handles / locks on files that it shouldn't which can cause problems building, that’s why restarting the VS helps in your case.
What I can suggest you to try :
Try first 4 suggestions and if doesn’t help try with the last one.
I hope this helps.
Dear Dimi --
I appreciate the follow-up.
As it turns out, when this happens, simply closing and re-starting Visual Studio is a good workaround.
Visual Studio seems to need at least a re-start, as clean+build does not do the trick.
This is just a workaround, I am still not sure of the root cause, but I will keep looking.
Hi,
I am just checking if you need my help.
Please don’t hesitate if you need any further assistance.
>>> Did this happened always or only some times?
It only happens some times, not always.
>>> Check that you have only one VS instance open at that time
Yes, I do have only 1 instance of VS open at a time.
A VS restart seems to work.
Did this happened always or only some times? Check that you have only one VS instance open at that time and if you have dependencies that use Infragistics are prebuild in the right order. Delete all VS generated files like bin/ obj and close all open files in VS, then try to rebuild.
Keep me updated if there is anything I can help you with.