Unable to copy file. Access to the path is denied

后端 未结 20 3043
[愿得一人]
[愿得一人] 2020-12-05 23:07

I am working on asp.net 3.5 project on remote machine. I am accessing it using remote desktop. When I build the project, I get error:

Error   62  Unable to c         


        
相关标签:
20条回答
  • 2020-12-05 23:36

    the error is pretty obvious there Access to the path 'bin\myprojname.pdb\' is denied. the user the web console process is running under (not the user you created in the webconsole, the actual windows user), most likely "Network Service" doesnt have permissions to that folder.

    You can either - Right click on that folder, goto permissions and add the "Network Service" user - Right click on that folder, goto permissions and add the "Everyone" user

    that should fix that problem.

    0 讨论(0)
  • 2020-12-05 23:37

    I had this issue with WebActivator.dll

    Closing VS and reopening resolved the issue for me

    0 讨论(0)
  • 2020-12-05 23:38

    Just remove the corresponding reference(.dll file) from the References and add it back again using add reference option.I got a similar error,and i have solved it this way.I hope it will help.

    0 讨论(0)
  • 2020-12-05 23:39

    Tip for VS noobs like me: Check you're looking at the right /bin folder.

    Details: To me, "Failed to copy from SomeDependancy/bin/Debug to /bin" sounds like it means the destination is SomeDependancy/bin. But in my application it meant MainProject/bin. I cottoned on to the idea when I discovered I could build the dependencies and only MainProject was failing. I haven't completed testing yet, but it looks like the suggestion about recreating the folder might now work for me.

    0 讨论(0)
  • 2020-12-05 23:40

    I solved it by Unchecking the Read-only CheckBox option on folder setting.

    0 讨论(0)
  • 2020-12-05 23:41

    If you have done some check-in into the bin folder then this issue will come. Just delete that file and check-in again and build it. It will definitely work. Note: Please don't check-in anything into bin folder

    0 讨论(0)
提交回复
热议问题