0

I have published my project before with no problems, suddenly I get this error :

unable to add 'X' to the web site. unable to add file 'x' access is denied

When I delete X file and tried to publish again, I got the same error on another file.. I have no clue why it happend...

Can someone light my way ?

Marriott81
  • 275
  • 2
  • 16
user2560521
  • 476
  • 2
  • 6
  • 18
  • I've have this problem sometimes and I just restart my Visual Studio. Sometimes I build and rebuild back to back and that messes things up every once in awhile. Try closing the solution and reopening it. – Humpy Jan 14 '14 at 13:18

1 Answers1

0

It is a permissions issue. What you have to do is grant "write" rights to yourself on the IIS directory (wwwroot by default). Then retry

Update : How do I give ASP.NET permission to write to a folder in Windows 7?

Community
  • 1
  • 1
user2427735
  • 1
  • 1
  • 3