hung-doan / .bookmarks

My life bookmarker
0 stars 0 forks source link

Webdeploy permission issue #25

Open hung-doan opened 8 years ago

hung-doan commented 8 years ago
System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
   at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos 

http://stackoverflow.com/questions/18452265/webdeploy-permission-issue

Solution:

Unless the user is an administrator, you need to grant them access to deploy to the website. You can do so by right clicking on the website in IIS Manager and select Deploy :: Configure Web Deploy Publishing. Just select the user and click OK (you can delete the publish settings file it generates on the desktop)