Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 29, 2012 09:08 AM by erwinyu888
Nov 28, 2012 02:11 PM|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 29, 2012 02:06 AM|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 09:08 AM|LINK
I can deploy on my account just fine, but when add that setACL part, it fails. It works without it.