locked
Compile errors after overwriting the local copy with TFS copy RRS feed

  • Question

  • I have recently overwritten my local copy with TFS copy. I am getting these types of errors.

    1. Unable to copy file "project\bin\Debug\project.xml" to "bin\Debug\project.xml". Access to the path 'bin\Debug\project.xml' is denied. 
    2. Unable to copy file "project\bin\Debug\project.dll"   to "bin\Debug\project.dll".   Could not find file 'project\bin\Debug\project.dll'. 

    I tried the following:

    Restarting the VSTS 2008
    Deleting and compiling for bin and obj folders
    Making folder access to write
    Unchecking VS hosting process
    Rebooting the system.

    Thanks for any help.
    K singh
    Tuesday, July 14, 2009 7:12 PM

Answers

  • Remove the files from source control

    Because on every get latest (for example on the buildserver) the files are existent on the file system with the readonly attribute. When you compile the application, you will receive the error.
    Ewald - Please remember to mark the replies as answers if they help.
    • Proposed as answer by Bill.Wang Thursday, July 16, 2009 2:20 AM
    • Marked as answer by Bill.Wang Tuesday, July 21, 2009 7:56 AM
    Wednesday, July 15, 2009 5:34 PM

All replies

  • Are the bin\debug folders added to source control?

    Are the files when you try to compile readonly?

    Can you write other files to the folder?
    Ewald - Please remember to mark the replies as answers if they help.
    Tuesday, July 14, 2009 8:01 PM
  • Thanks Ewald for your quick reply.

    I see that these files are added to source control.

    thanks,
    -K singh
    Wednesday, July 15, 2009 2:50 PM
  • Remove the files from source control

    Because on every get latest (for example on the buildserver) the files are existent on the file system with the readonly attribute. When you compile the application, you will receive the error.
    Ewald - Please remember to mark the replies as answers if they help.
    • Proposed as answer by Bill.Wang Thursday, July 16, 2009 2:20 AM
    • Marked as answer by Bill.Wang Tuesday, July 21, 2009 7:56 AM
    Wednesday, July 15, 2009 5:34 PM