Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio: Unable to add to the Web site... Unable to add file... Access is denied Error 550

I am trying to publish my project from my development machine to the staging environment. I would right click the project in visual studio and click publish. Most of the files would publish just fine, but a few were giving me problems. In the output log, there were multiple error messages, all stating:

Unable to add ‘XXX.ext’ to the Web site. Unable to add file ‘XXX.ext’. Access is denied (550)

I'm following this : But I don't find the "Read-only" attribute checkbox...

So have you any ideas ? Thanks in advance.

like image 927
Razor Avatar asked Mar 28 '12 07:03

Razor


People also ask

How do I fix access denied files?

Right-click the file or folder, and then click Properties. Click the Security tab. Under Group or user names, click your name to see the permissions that you have. Click Edit, click your name, select the check boxes for the permissions that you must have, and then click OK.


2 Answers

I just solved this problem on my own system. It was a permissions issue. What I had to do was grant "write" rights to myself on the IIS directory (in my case wwwroot). I retried the publish from Visual Studio and it worked perfectly.

like image 116
Levi Botelho Avatar answered Oct 13 '22 19:10

Levi Botelho


Open visual studio in administrator mode. It solved my problem.

like image 32
arpan desai Avatar answered Oct 13 '22 19:10

arpan desai