<div class="content-container">
</div>
<div class="content-container">
</div>
Hello
I'm trying to use msdeploy from the command line but I get an 401 unathorized but it works in VS2010, here the configuration:
And here the msdeploy command with parameters:
"C:\Program Files\IIS\Microsoft Web Deploy V3\\msdeploy.exe" -source:package='c:\temp\test\test.zip' -dest:auto,wmsvc='https://TestServer:8172/msdeploy.axd?site=Default+Web+Site/Test',userName='Test',password='Test',includeAcls='False' -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -allowUntrusted -setParamFile:"c:\temp\test\test.SetParameters.xml"
And the error message
Info: Using ID '4e06009a-fa71-4774-bfd8-78b88a2b28ee' for connections to the remote server. Error Code: ERROR_USER_UNAUTHORIZED More Information: Connected to the remote computer ("TestServer") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED. Error: The remote server returned an error: (401) Unauthorized. Error count: 1.
From MS Deploy troubleshooting:
The username and password are correct, the "site" exists (Default Web Site/Test) and the user has IIS Manager permission on "Default Web Site".
What is wrong?
Hello
Why msdeploy is pain in the ass? Shouldn't it be so easy? Why it sucks continuosly with its erros?
What does this error means? ERROR_USER_NOT_AUTHORIZED_FOR_IISAPP?
Why I get this error with msdeploy and not with visual studio? Why with visual studio I never get an error and with msdeploy I get a bunch of errors every time? Why the description of those errors sucks? Who has written those errors? A stupid inbecil retarded idiot? It would explains also why msdeploy doesn't work!
User: Client IP: xxx.xxx.xxx.xxx Content-Type: application/msdeploy Version: 9.0.0.0 MSDeploy.VersionMin: 7.1.600.0 MSDeploy.VersionMax: 9.0.1631.0 MSDeploy.Method: Sync MSDeploy.RequestId: 7b1c61e2-1379-4755-b028-131a222fd285 MSDeploy.RequestCulture: en-US MSDeploy.RequestUICulture: en-US ServerVersion: 9.0.1631.0 Skip: objectName="^configProtectedData$" Provider: auto, Path: A tracing deployment agent exception occurred that was propagated to the client. Request ID '7b1c61e2-1379-4755-b028-131a222fd285'. Request Timestamp: '1/29/2013 5:38:42 PM'. Error Details: ERROR_USER_NOT_AUTHORIZED_FOR_IISAPP Microsoft.Web.Deployment.DeploymentDetailedUnauthorizedAccessException: Could not complete an operation with the specified provider ("iisApp") when connecting using the Web Management Service. This can occur if the server administrator has not authorized the user for this operation. iisApp http://go.microsoft.com/fwlink/?LinkId=178034 Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_AUTHORIZED_FOR_IISAPP.
The provider "iisApp"? What is this "iisApp" provider? Is he the pusher of the inbecil, who has made msdeploy?
"This can occur if the server administrator has not authorized the user for this operation"? Which operations? Which user?
Is this an error message? And the help page is also awesome:
"Diagnosis - A non-administrative user attempted to perform an operation with a Web Deploy provider for which the user is not currently authorized.
Resolution - Web Deploy 2.0 setup, by default, creates Management Service Delegation Rules which allow non-administrators to perform operations with this provider. It is possible that a delegation rule required for this provider has not been setup correctly."
Thanks, I have reinstalled msdeploy and I get the same error and now stupid inbecil retarded idiot what do you suggest? To reinstall windows?
I'm working on a IIS6 to IIS7 migration using MS Web Deploy 3, and cannot find any information on how to handle migrating the IIS guest account associated with each website.
I realize that ACLs can be migrated, but in IIS6 the default guest account is MachineName\IUSR_MachineName, which isn't a domain account, so it can't really exist on the destination machine.
So, is there a way to translate the guest account permissions on the target machine (IIS6) to the destination (IIS7) into IIS_IUSRS?
Hi all
I am getting sporadic ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER errors while deploying a WCF application via msdeploy V3. When I issue the command a second time (immediately after the first one) the error does not occur anymore and all is fine.
Any ideas?
Thx
Juerg
Hello Everyone,
Hope everyone is ok and this is probably a silly question, but here goes.
I need to migrate a intranet site which lives on a win 2003 box and iis 6 to a Win 2008R2 box and iis 7.5. If I use the web deployment tool to deploy the site to the new box, does it remove it off the source server.
I’d like to leave it on the source server just in case something goes wrong and my users can still access the site on the original server.
Many thanks
Allan
Is there a way to specify preSync/runCommand inside .csproj or .pubxml file? So that when you deploy your web application using publishing profiles (for example by right-clicking on the project node in solution explorer > publish) it would run pre-defined preSync/postSync commands?
I have a site in IIS 8 that has a .Net Trust Level set to Full. However, after deploying the site from Visual Studio Professional 2012 using Web Deploy, the .Net Trust Level gets set to Medium. This breaks a WCF Service we are using in the site, and causes other errors. Once I change the .Net Trust Level back to Full, the errors are resolved.
Why is MS Deploy setting the .Net Trust Level to Medium?
Is there a setting somewhere to prevent it from doing this?
Thanks...
Hi,
We’re having problem with Web Deploy on Windows 2012 Servers.
The following command is executed in a Windows Server 2012 (Web Deploy V3)
msdeploy.exe -verb:sync -source:contentpath=”path to source share” -dest:contentpath=”path to dest share”
This sometimes causes dll-files to be corrupt in the destination path!
I have compared corrupted dll-files from the source/destination and the corruptions in the files are different everytime
I have runned batch test and appr 10-20% of command execution above fails with corrupt dll-files.
We’ve been using this command on Server 2008/2008 R2 for several years without any dll-files to be corrupt.
The problem has occurred on all tested Windows 2012 servers.
Regards
Anders Sjölander
Hi
I am trying to migrate from IIS 7.0 on windows 2008 DC Edition x86 to IIS 8 windows 2012 Pro x64.
OLD 2008 MACHINE NAME: WSPWEB-1
NEW 2012 MACHINE NAME: WSPWEB-1NEW
on WSPWEB-1 on Web Deploy V3 folder I run:
msdeploy -verb:sync -source:metakey=lm/w3svc/442,computername=WSPWEB-1 -dest:auto -enableLink:appPool -whatif > c:\msdeploysync.log
then i move the folder over the network to WSPWEB-1NEW machine and run command:
msdeploy -verb:sync -source:package=c:\Site1.zip -dest:auto -enableLink:appPool > WebDeploySync.log
I then add a binding to the site to test it, the application pool gives a 503 error as the user that the application pools runs as is not migrated.
Can the tool also migrate the users and passwords??
I tried using Windows migration tool, exported users/groups from WSPWEB-1 to WSPWEB1-NEW but it still didnt work so i think its not moving the users correctly.
Moving users script i run:
WSPWEB-1: Export-SmigServerSetting -User All -Group -Path c:\MigratedUsers\ -Verbose
WSPWEB-1NEW: Import-SmigServerSetting -User All -Group -Path c:\MigratedUsers\ -Verbose
HELP! :)
We are kind of stumped on how to deploy a solution from TFS drop folders that has transforms to one of our many non-production environments. Can MSDeploy do a web.config transform, such that it does the environment transform? (Or do we have to generate a new build/buildnumber for each environment.)
Thanks
Is there anything in webdeploy that would prevent me from taking a package file I have generated using msdeploy.exe -dest:package and opening that zip file using System.IO.Compression, modifying some attributes in the archive.xml saving it back and then using that package with msdeploy?
I see attributes like MSDeploy.MSDeployProviderOptions and don't know if those might contain hashes of the XML data or something
Thanks
I'm a sysadmin trying to do what I thought would be a fairly simple task. I want to use msdeploy to sync one filesystem directory to another directory. What makes this a little challenging is I have a lot of exclusions to make at the source. Specifying them via the command line is very ugly/tough to read. I am hoping to use a parameter file (with the -setParamFile: option) to set all my exclusions.
Unfortunately I'm not finding any examples of doing this.
Here's an example of the command I'd like to use:
msdeploy -setParamFile:"C:\scripts\msdeploy.xml" -verb:sync -source:contentPath=C:\scripts -dest:contentPath=C:\scripts2
In the msdeploy.xml file, I would like to set exclusions for *.log, a folder called ".svn", etc. Just need to know how to do that.
Thanks!
Kevin
Im trying to sync an application from IIS7.5 to IIS7.5 using a package
On source: msdeploy -verb:sync -source:apphostconfig="MyApp" -dest:package=c:\MyApp.zip > MyApp.log
On destination: msdeploy -verb:sync -source:package=c:\Migration\MyApp.zip -dest:apphostconfig="MyNewApp" -whatif > MyApp.log
and I got the following error:
ERROR_APPLICATION_NOT_SUPPORTED: The following unsupported application(s) were detected on the source server “Dynamic IP Restrictions Beta” remove the application(s) and retry your sync with the “-whatif“ switch. If the sync still fails, you may need to remove any schema changes that the applications applied to your configuration before attempting another sync.
I know that I could install this module (it is a role service) in the destination server but I dont want to do that
My question is, how can I remove this or any other module from the source package or How can I skip this module or any other when running the sync command at the destination?
regards
ky
I have a parameter that I wish to enable as a drop down list. When I add the following to the parameters.xml file within a Web Deployment Tool package a drop down list appears:
<parameter name="SelectList" description="Select the value.">
<parameterValidation type="Enumeration" validationString="value1,value2" />
<parameterEntry kind="TextFile" scope="\\textfile.config$" match="PlaceHolderForSelectList" />
</parameter>
When this parameter is added to the Web Publishing Pipeline used by Visual Studio 2010 to create the package the following appears in the paramaters.xml file:
<parameter name="SelectList" description="Select the value." defaultValue="">
<parameterEntry kind="TextFile" scope="\\textfile.config$" match="PlaceHolderForSelectList" />
</parameter>
Notice that the <parameterValidation> element is not added.
The MsDeployDeclareParameters only seems to support the following:
<MsDeployDeclareParameters Include="ParameterName">
<Kind></Kind>
<Scope></Scope>
<Match></Match>
<Description></Description>
<DefaultValue></DefaultValue>
<Tags></Tags>
</MsDeployDeclareParameters>
So is there any way to add the parameterValidation entries?
I have configured my server to have web deploy backups turned on and enabled.
I am running
msdeploy.exe -verb:sync -source:package="config-management.zip",encryptPassword="password" -dest:auto,encryptPassword="password",computerName="localhost" -setParamFile:"parameters.xml"
This runs successfully (it deploys the files) but it reports the following
Info: Creating backup of existing site.
Warning: BACKUP_FAILED - Skipping backup because it failed due to an unknown reason. For more information, contact your server administrator.
The event viewer contains:
Error: The property 'password' located at '/appPoolConfig[@appPool=AppPoolName']/add[@name='AppPoolName']/processModel' is marked as secure. You must specify an encryption password to archive this property.
Error count: 1.
And no backup is made. I am supplying the correct encryption password in the sync command. Any ideas whats wrong please?
Thanks
I was just about to start using the deployment technique, Automating Deployment with Microsoft Web Deploy, but i don't have the Management Service Delegation icon on my Windows Server 2008 R2 server. How do I get that to appear?
Regards,
Magnus
I have a web project in Visual Studio 2012 and I am able to create a web deployment package. However I am having difficulties using msdeploy with this package to create a new web site on my server.
My server looks like this:
I would like to create a deployment package that would create a site on a different server like this:
I have read that I could possible use msdeploy with the types appHostConfig and iisApp but I have been unable to piece all this together and create a successfully working script. Is what I am attempting to do even possible?
I am trying to deploy a website with database schema but keep getting error below.
I have been using web deploy successfully for some time, but only now have tried to use dor deploying schema.
I am using vs 2012 rtm, deploying to windows 2012 server virtual machine on Azure, with SQL 2012.
I have tried windows and sql authentication with no luck.
Anybody have any ideas thanks.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4377,5): Error ERROR_EXECUTING_METHOD: Web deployment task failed. (Could not deploy package.
Unable to connect to target server.
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXECUTING_METHOD.)
We're using the (almost completley undocumented) 'public API' for Web Deploy 3 to create a .zip package of our website and then sync it to a server:
using (var deploymentObject = DeploymentManager.CreateObject(DeploymentWellKnownProvider.Package, packageToDeploy)) { deploymentObject.SyncParameters.Load(packageParametersFile); \\ contains some connection string information and nothing more. DeploymentSyncOptions syncOptions = new DeploymentSyncOptions(); syncOptions.WhatIf = false; deploymentObject.SyncTo(destinationOptions, syncOptions); }
This code worked perfectly until we installed .NET 4.5 on our production and build servers and upgraded the project we are deploying to 4.5 also. Now we're getting the following error:
The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v4.0'. This application requires 'v4.5'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_APPPOOL_VERSION_MISMATCH.
Our server definately has .Net 4.5 installed and the and the IIS web site application pool version is '.NET Framework v4.0.30319' (I know it says v4 but .NET 4.5 is an 'in-place' upgrade and replaces 4.0 DLLs with the new version number .30319).
It is possible to resolve this issue when deploying via MSBuild.exe command line (not by creating a package but by syncing directly to a server) by adding the /p:VisualStudioVersion=11.0 flag (which causes a different web application targets file to be used
which somehow allows deployment of a .NET 4.5 application).
Does anyone know why Web Deploy API complains like this and how I can resolve this error in the same way as the MSBuild solution?