You must Sign In to post a response.
  • Category: WPF

    While running wpf project I am gatting following error.

    While running wpf project I am gatting following error.

    Severity Code Description Project File Line
    Error Unable to copy file "D:\Program\SVN_RefuDriver_Current\dll\ICSharpCode.SharpZipLib.dll" to "..\Release\module\ICSharpCode.SharpZipLib.dll". The process cannot access the file '..\Release\module\ICSharpCode.SharpZipLib.dll' because it is being used by another process. CoreWpf


    Severity Code Description Project File Line
    Error Could not copy "D:\Program\SVN_RefuDriver_Current\dll\Microsoft.Windows.Shell.dll" to "..\Release\module\Microsoft.Windows.Shell.dll". Exceeded retry count of 10. Failed. CoreWpf


    Severity Code Description Project File Line
    Error Unable to copy file "D:\Program\SVN_RefuDriver_Current\dll\Microsoft.Windows.Shell.dll" to "..\Release\module\Microsoft.Windows.Shell.dll". The process cannot access the file '..\Release\module\Microsoft.Windows.Shell.dll' because it is being used by another process. CoreWpf


    Please help me.
  • #767754
    Hai Ravi,
    Looks like the project is already running somewhere and due to that it is using the dll file for which the error message is displayed.
    Try stop the processes related to the project using task manager and then do the deployment again and hope it will work fine.
    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com

  • #767763
    Mostly these errors are occurred at the time of compilation, follow some work around to resolve the issue
    1. I think you need to build your code in Release mode
    2. Right click on release folder and click on properties and see if it is ReadOnly, if yes then remove ReadOnly Property
    3. See if your exe is still running in Task Manager
    I somewhere read following solution also, see if it works for you
    http://stackoverflow.com/questions/11646047/error-cannot-access-file-bin-debug-because-it-is-being-used-by-another-proc
    http://stackoverflow.com/questions/2625239/unable-to-copy-a-file-from-obj-debug-to-bin-debug
    Hope it helps

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #767799
    Hi,

    First restart your machine and reopen your project then clean the project solution then rebuild the solution again, in this case it will clear the holding dll's and refresh the solution again, in this way the problem might be resolved.

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/


  • Sign In to post your comments