Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Winforms IDE problem

Winforms IDE problem

Scheduled Pinned Locked Moved C#
helpcsharpvisual-studiowinformsbusiness
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fragging
    wrote on last edited by
    #1

    I have a problem building a Solution. The solution contains 2 projects. Project1 is a DLL that supplies some business logic. Project2 is the Winforms Wizard. I have set the Project2 to be dependent on Project1 to build. Whenever I build the solution I get the following error: ------ The file 'Project1.dll' cannot be copied to the run directory. The process cannot access the file because it is being used by another process. ------ I am being driven slowly insane by this one. Please let me know if there is anything that I can do to handle this problem without having to shut down the IDE and destroy the obj directory for Project1. Thanks in advance for your time and help :sigh: Ward Frag Try, Fail..Fail, Succeed Tool Developer Michigan, USA

    R R 2 Replies Last reply
    0
    • F Fragging

      I have a problem building a Solution. The solution contains 2 projects. Project1 is a DLL that supplies some business logic. Project2 is the Winforms Wizard. I have set the Project2 to be dependent on Project1 to build. Whenever I build the solution I get the following error: ------ The file 'Project1.dll' cannot be copied to the run directory. The process cannot access the file because it is being used by another process. ------ I am being driven slowly insane by this one. Please let me know if there is anything that I can do to handle this problem without having to shut down the IDE and destroy the obj directory for Project1. Thanks in advance for your time and help :sigh: Ward Frag Try, Fail..Fail, Succeed Tool Developer Michigan, USA

      R Offline
      R Offline
      Robert Rohde
      wrote on last edited by
      #2

      I dont know the exact origin but whenever I have this error (very rarely) I switch the CopyLocal property of the reference to false. This way it doesnt copy the dll and thus doesnt have any conflicts :)

      1 Reply Last reply
      0
      • F Fragging

        I have a problem building a Solution. The solution contains 2 projects. Project1 is a DLL that supplies some business logic. Project2 is the Winforms Wizard. I have set the Project2 to be dependent on Project1 to build. Whenever I build the solution I get the following error: ------ The file 'Project1.dll' cannot be copied to the run directory. The process cannot access the file because it is being used by another process. ------ I am being driven slowly insane by this one. Please let me know if there is anything that I can do to handle this problem without having to shut down the IDE and destroy the obj directory for Project1. Thanks in advance for your time and help :sigh: Ward Frag Try, Fail..Fail, Succeed Tool Developer Michigan, USA

        R Offline
        R Offline
        Ravindra Sadaphule
        wrote on last edited by
        #3

        You need to remove the reference to Project 1 from Project 2 whenever you get this error. Then build Project1. restablish the reference and then build all. This should resolve the error. Cheers Ravindra Sadaphule MCSD.NET

        F 1 Reply Last reply
        0
        • R Ravindra Sadaphule

          You need to remove the reference to Project 1 from Project 2 whenever you get this error. Then build Project1. restablish the reference and then build all. This should resolve the error. Cheers Ravindra Sadaphule MCSD.NET

          F Offline
          F Offline
          Fragging
          wrote on last edited by
          #4

          Ravindra, Thanks for the note. I tried that and it worked. I wonder if the condition will evolve again over time? What is the cause of this problem? Is this something that will be fixed in the IDE? Ward Frag Try, Fail..Fail, Succeed Tool Developer Michigan, USA

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups