Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use Web Deploy 3.0 with a non-admin account
    primarykey
    data
    text
    <p>I'm trying to deploy an ASP.net MVC Web Site using a non-administrator account (with Web Deploy 3.0). According to all the videos and documentation I've seen this is possible. However, when I try to deploy I get an error (ERROR_USER_NOT_ADMIN). </p> <p>I have added the user under "IIS Manage Users" on the server. This user exists on the site under "IIS Manager Permissions".</p> <p>What am I missing? </p> <p>Here is the pubxml:</p> <pre><code>&lt;Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; &lt;PropertyGroup&gt; &lt;WebPublishMethod&gt;MSDeploy&lt;/WebPublishMethod&gt; &lt;SiteUrlToLaunchAfterPublish&gt;http://sitename.com/&lt;/SiteUrlToLaunchAfterPublish&gt; &lt;MSDeployServiceURL&gt;http://server.com&lt;/MSDeployServiceURL&gt; &lt;DeployIisAppPath&gt;IISsitename&lt;/DeployIisAppPath&gt; &lt;RemoteSitePhysicalPath /&gt; &lt;SkipExtraFilesOnServer&gt;True&lt;/SkipExtraFilesOnServer&gt; &lt;MSDeployPublishMethod&gt;RemoteAgent&lt;/MSDeployPublishMethod&gt; &lt;UserName&gt;user&lt;/UserName&gt; &lt;_SavePWD&gt;True&lt;/_SavePWD&gt; &lt;PublishDatabaseSettings&gt; &lt;Objects xmlns=""&gt; &lt;/Objects&gt; &lt;/PublishDatabaseSettings&gt; &lt;/PropertyGroup&gt; &lt;/Project&gt; </code></pre> <blockquote> <p><a href="http://www.iis.net/learn/publish/troubleshooting-web-deploy/web-deploy-error-codes#ERROR_USER_NOT_ADMIN">http://www.iis.net/learn/publish/troubleshooting-web-deploy/web-deploy-error-codes#ERROR_USER_NOT_ADMIN</a></p> <p>ERROR_USER_NOT_ADMIN Diagnosis - This happens if you try to connect to the Remote Agent Service but have not provided appropriate administrator credentials. Resolution - The Remote Agent Service accepts either built-in Administrator or Domain Administrator credentials. If you have a non-domain setup and want to use account other that built-in administrator, please do following: Create a separate user group MSDepSvcUsers on remote computer. Create an local account A on both local &amp; remote computer. Add A to MSDepSvcUsers on remote computer. Use account A to publish, this will allow you to publish without needing to use built-in > admin account.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload