visual studio 2010 unable to Publish to local web site. access denied

我的梦境 提交于 2019-11-30 12:07:46

If you are able to run your application after copying from a different location, the problem is not with IIS or the worker process; it would most likely be a permissions problem with your windows user and process (in this case, visual studio).

Try running visual studio as an administrator (if you are not a local administrator of the machine). If that works, you can give full access to your inetpub folder for your user.

Late to this thread but I fixed this issue by going to:

c:\inetpub\wwwroot\myApplication > right click > properties > security > select Users(myMachine\Users) change access to full

Hopefully this thread is still alive. I had this problem and here is how I resolved it:

Try opening a file on the remote site from Visual Studio by File>Open File...

If you don't have access you will be challenged with Windows Sign in. Here you can enter your credentials for accessing the REMOTE site. Once you enter the credentials and the file is successfully opened you will be able to publish. Occassionally (I don't know why) the credentials will become invalid at which time all you have to do is open a file and reenter them.

Another solution is to create a share to your local c:\inetpub\wwwroot dir (give yourself read/write permissions) and publish to the share like so: \\mypc\wwwroot\mywebsite. It helped me get around the annoying UAC security without disabling it.

Web Deploy is likely to execute under the user name Local Service. Check the permissions for this user.

I'm having a similar problem

Access to the path 'C:\Sources\x\bin\Debug\netcoreapp2.1\publish' is denied. Unable to create the Web site location Access is denied.

Access is denied because a subfolder is open in file explorer and locked by file explorer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!