Last post Dec 03, 2013 09:54 PM by dotnetnerd
Nov 28, 2012 10:11 AM|erwinyu888|LINK
I am trying to publish to my smarterasp.net hosting account. I have a modification to the MSDeploy process to change a directory permissions on deploy. I have something like this:
<!-- Extends the AfterAddIisSettingAndFileContentsToSourceManifest action do also set ACLs -->
<Target Name="SetCustomACLs" Condition="'$(IncludeCustomACLs)'=='TRUE'">
<Message Text="Adding Custom ACLs" />
<!-- Make sure the by default Networkservice/AppPoolIdentity have write permission to the root -->
<MsDeploySourceManifest Include="setAcl" Condition="$(IncludeSetAclProviderOnDestination)">
But when I make a MSDeploy from Visual Studio it gives me an error saying that I don't have permissions to make use of SetACL.
Error 2 Web deployment task failed. (Could not complete an operation with the specified provider ("setAcl") when connecting using the Web Management Service. This can occur if the server administrator has not authorized the user for this operation. setAcl
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_AUTHORIZED_FOR_SETACL.) 0 0 VoraEstany
I want to make this so I don't have to make this change:
and the permissions are restored automatically every time I make a MSDeploy without having to be concerned about going to the web and change the permissions manually.
Nov 28, 2012 10:06 PM|dotnetnerd|LINK
It seems that you dont have enough permission. Please ask your hosting provider to give the permission for you to use web deploy.
Nov 29, 2012 05:08 AM|erwinyu888|LINK
I can deploy on my account just fine, but when add that setACL part, it fails. It works without it.
Dec 03, 2013 09:54 PM|dotnetnerd|LINK
You can consult this issue with your hosting provider. :)