Reputation: 8402
I'm getting this error when I try to publish. Not on all files, just on a handful.
Unable to add file 'webservices\initial_audit_svc.asmx'. Access is denied.
I checked the properties to make sure they're not "read only", and they're fine.
Can anyone think of any other reason why I might get this error while publishing?
Upvotes: 1
Views: 1635
Reputation: 11
just run visual studio as "run as administrator" and it worked for me
Upvotes: 0
Reputation: 8402
If anyone ever experiences this, I finally discovered the answer.
The files were marked as "Read-Only" on the server I was publishing to, and not my local version. No idea how that happened. Also, 2 of them were marked as "Block", so I had to unblock them. All of this was found on the Properties popup for the file on our Production server.
Upvotes: 1