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:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Extends the AfterAddIisSettingAndFileContentsToSourceManifest action do also set ACLs -->
<IncludeCustomACLs>TRUE</IncludeCustomACLs>
<AfterAddIisSettingAndFileContentsToSourceManifest Condition="'$(AfterAddIisSettingAndFileContentsToSourceManifest)'==''">
$(AfterAddIisSettingAndFileContentsToSourceManifest);
SetCustomACLs;
</AfterAddIisSettingAndFileContentsToSourceManifest>
</PropertyGroup>
<Target Name="SetCustomACLs" Condition="'$(IncludeCustomACLs)'=='TRUE'">
<Message Text="Adding Custom ACLs" />
<ItemGroup>
<!-- Make sure the by default Networkservice/AppPoolIdentity have write permission to the root -->
<MsDeploySourceManifest Include="setAcl" Condition="$(IncludeSetAclProviderOnDestination)">
<Path>$(_MSDeployDirPath_FullPath)\data\images</Path>
<setAclAccess>Read,Write,Modify</setAclAccess>
<setAclResourceType>Directory</setAclResourceType>
<AdditionalProviderSettings>setAclResourceType;setAclAccess</AdditionalProviderSettings>
</MsDeploySourceManifest>
</ItemGroup>
</Target>
</Project>
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
http://go.microsoft.com/fwlink/?LinkId=178034
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_AUTHORIZED_FOR_SETACL.) 0 0 VoraEstany
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.
erwinyu888
0 Points
2 Posts
VS Webdeploy Publish SetACLs Error
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:
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 http://go.microsoft.com/fwlink/?LinkId=178034
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: http://www.smarterasp.net/support/KB/a9/acl-was-altered-after-using-vs-web-deploy.aspx
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.
dotnetnerd
Contributor
2390 Points
544 Posts
Re: VS Webdeploy Publish SetACLs Error
Nov 29, 2012 02:06 AM|LINK
Hi erwinyu,
It seems that you dont have enough permission. Please ask your hosting provider to give the permission for you to use web deploy.
Windows ASP.NET Hosting | Reseller Hosting | Cloud Hosting
erwinyu888
0 Points
2 Posts
Re: VS Webdeploy Publish SetACLs Error
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.