Unable to copy file - access to the path is denied

后端 未结 30 1230
死守一世寂寞
死守一世寂寞 2020-11-30 19:05

I am using Visual Studio 2005. After taking code from version control first, the c#.net application runs correctly. But, after doing some modifications, when I build I am

30条回答
  •  隐瞒了意图╮
    2020-11-30 19:49

    Old post, but this zombie is hitting VS 2017 (I haven't dug into why it's just "some" projects). In this case, it's not user permissions, rather IIS Express process is still using the files.

    You'll see the icon in your task tray

    1. Right Click
    2. Exit
    3. You should be able to rebuild without this annoying "permission denied" message.

    This is also why "restarting Visual Studio" will "fix" the issue. Doing so, stops IIS Express.

    Hth...

提交回复
热议问题