When deploying from the command line to IIS 8 (WS2012), sync operations are clearing manually-set Application Settings for the app in IIS. Is there some parameter that I'm missing from my command line that will tell Web Deploy to leave my manually-entered App Settings alone in IIS on a sync operation?
Web Deploy is removing manually-set Application Settings on a sync
backup-wdsite error on certain sites
I am running something like this as an automated was to back up our webservers
backup-wdsite -site $ws -output $BackupPath -sourcesettings @{encryptPassword=$EncryptPassword} -includeapppool
on some sites I am getting an error like this
backup-wdsite : The parameter 'Web Application Physical Path Parameter' has
already been defined.
when I run it like this
FOR /F tokens^=2^ delims^=^" %%G in ('%_list_sites%') DO %_msdeploy% -verb:sync -source:appHostConfig='%%G',%_V4Net%,computerName=%computername% -dest:package='%_BUdir%\%%G_%date:~-4,4%%date:~-7,2%%date:~-10,2%.zip',%_V4Net%,EncryptPassword=%_EncryptPass% -enableLink:AppPoolExtension
through a batch file it works fine. It only has an issue so far .. with sites that have apps that have their physical path be outside of the root of the main site .. ie...
Default Web Site - e:\inetpub\wwwroot
--> App1
--> Physical Path E:\App1
I was trying to escape batch files and convert over to full powershell .. but this issue is kind of getting in the way and I have not seen any posts on forums or anything so I am wondering if I am just doing something wrong..
Web Deploy Server Export - #ERROR_FILE_IN_USE.
HI
I am trying to export a server with around 700 websites.
After some hours it fails with ERROR_FILE_IN_USE. I have read http://www.iis.net/learn/publish/troubleshooting-web-deploy/web-deploy-error-codes#ERROR_FILE_IN_USE I then start the process again and enable rule appOffline rule however this didn't fix the issue.
What else can I do to stop locked files and do a successful migration?
WebDeploy (PUBXML) file being edit when running Deploy Wizard removing MSBuild code
Following one of the example sites, I tried to add the following code that is msbuild style into my webdeploy.
<CopyAllFilesToSingleFolderForMsdeployDependsOn>
CustomCollectFiles;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForMsdeployDependsOn>
Every time the build wizard runs for me to create a pacakge deploy it blanks out the content between the two tags, is the msbuild code not valid in 2012 is there a patch or fix?
Copy IIS Config to another Server - HELP
Help
I'm trying to do a web deployment from an iis 7.5 to a new server 8.5. First I had trouble with the server running out of space, which I fix by moving the temp files. I have too many website on iiS to move across, I keep getting package too large!!!!! use archive Dir
Plan B
Can I take only the config files across ? Is this is the Case what do I need to Tick?
Full IIS Web Server NO
IIS 7 Configuration Schema
IIS 7 Configuration
IIS Registry Setting
.net32 Root webconfiguation
.net32 Machine Configuration
.net64 Root Configuration
.net64 Machine Configuration
WebDeploy fails to deploy database because it is trying to use NT AUTHORITY\ANONYMOUS LOGON to deploy the SQL server
I am trying to deploy a Web application to a remote server using IIS. I have followed the instructions to set up remote web deploy and it succeeds in deploying the code, but when it gets to the deployment of the SQL database it fails to connect to the server to deploy the SQL because it is using the NT Authority\Anonymous Logon. I have it using Windows Authentication and the user has the proper permissions on IIS and the code is deploying properly, but I cannot get it to use the Windows Credentials for the SQL database deployment.
Error: (6/12/2015 10:58:18 AM) An error occurred when the re Error: The database 'xxxxxxAdmin' could not be created. Error: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Windows Server Migration IIS 6.0 To IIS 8.0 Windows 2012R2
Dear Professionals ITs,
How to migrate Windows 2003 /IIS 6.0 to Windows 2012 R2 /IIS 8.0?
Becuase I have over 1000 Websites up and running I do not want to lose any configuration user, password resting or any trouble in web services I want to do it with Powershell in Fast way.
If You have experiance in this case or you have done it before please share your ideas with me how you did it I would appricate it your time? but if you don´t know or have no information plz do not waste your time.
Thanks
WebDeploy v3 Installation from Powershell or CMD line Server 2008 64 bit
I'm creating a disaster recovery (DR) script with Powershell that allows me to automate the building of our servers. I need to be able to install WebDeploy v3 from either Powershell 2.0 or > and/or .bat file. I've found no documentation to support performing a COMPLETE install (that includes the 'Web Deployment Agent Service') of WebDeploy v3 with a parameter for Powershell or .bat file.
Perhaps I've missed a thread or have literally stepped past some documentation but none of my searches are bearing fruit. Is there a parameter that I'm missing to successfully perform the complete install from Powershell v4.0 on Server 2008 R2 64 bit?
I've been calling 'WebDeploy_x64_en-US.msi' from a .bat file that's referenced in my Powershell DR script. But the install doesn't create the 'Web Deployment Agent Service'. I should mention that I'm wanted to do an unattended silent install so I can run my script concurrently across multiple servers.
Start /wait C:\ExternalDependencies\WebDeploy_x64_en-US.msi /quiet /norestart
Thanks,
Randy
Msdeploy - Simple question
Hi I am about to move my web server from II6 to IIS8 using webdeploy. My question is does the migration change anything on the IIS 6 source server? I need this to continue to run for a few weekes after the migration.
Many thanks
Fraser
Sync Web Server but skip multiple objects?
So we have two load balanced web servers with tons of sites on them all setup with their own IP.
We use the following to push updates from one server to the other.
msdeploy -verb:sync -source:webServer -dest:webServer,computerName=server02 -skip objectName=binding
All is good there. We have added a few sites on the 01 server and do not want those sync'd over to the 02 server. Is it possible to skip those websites? I haven't figured out multiple skip arguments or whether skipping a website is possible. IIS 7.5 if that matters.
MSDeploy package (zip) to Virtual directory.
I'm not a build guy, apologies if this is basic. We have an existing setup program, creates the web server, virtual directory etc. Used to use the old Web Deployment project, now on VS2013, we have the package option. I created a publish profile VS creates the package, (zipfile) and also the cmd file to execute it, manifest file etc.
I can manually "Import" the zip file into IIS, so it seems valid.
Trying to execute MSDeploy from inside the setup project, it fails.
This https://technet.microsoft.com/en-us/library/dd569034(v=ws.10).aspx says
"Unpackage the contents of the Package.zip file and put them in the C:\temp folder. Do not delete any files that already exist in the destination folder."
msdeploy.exe -verb:sync -source:package=C:\package.zip -dest:contentpath=C:\temp -enableRule:DoNotDeleteRule
our application path has spaces, so I've included quotes (\") around the source file and destination folder.
msdeploy.exe -verb:sync -source:package="C:\Program files\myApp\package.zip" -dest:contentpath="C:\program files\myApp\webUI"
When I execute it, I get this error:
Error: Source (sitemanifest) and destination (contentPath) are not compatible for the given operation.
Error count: 1.
without the quotes, it complains that "files" is an invalid parameter.
Am I missing something obvious?
TIA
Quotes in password
One of our users of msdeploy has a single quote character in his password. What is the proper way to quote quotes and spaces in a password in the command line of the tool?
IIS 6 to IIS 7
I have an IIS 6 server that I want to move to IIS 7 server with a different name. I have more than one drive on the old server and need to move it to the new server. Some of the folders on the different drives have shares to my virtual directories. How can I move them all and without losing the share pointers? Also would I have to change my DNS entries to the new server or the Bindings? Thanks.
Web Deploy 3.5 throws ERROR_USER_NOT_ADMIN when using a built-in Administrator account
Web Deploy 3.5 throws ERROR_USER_NOT_ADMIN when using a built-in Administrator account in a Windows Server 2012 machine in a Workgroup
Kindly provide a solution that will solve the issue.
The underlying connection was closed: An unexpected error occurred on a send.
When doing Publish from Build server to Target server. We are seeing following error:
Web deployment task failed. (Could not complete the request to remote agent URL 'https://<HOSTNAME/IP>:8172/msdeploy.axd?site=<OURWEBSITE>'.)
This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.
Error details: Could not complete the request to remote agent URL 'https://<HOSTNAME/IP>:8172/msdeploy.axd?site=<OURWEBSITE>'.
The underlying connection was closed: An unexpected error occurred on a send.Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host 0 0 WEBSITENAME
We've been troubleshooting these since DAYS [Not hours] - We've read all following blogs/articles. Tried all possible solution. Bu with no luck:
We’ve tried few things like :
- Disable Firewall/Antivirus, Allow Port 8172
- Make sure Hostname/IP gets resolved
- Server’s IP and Port number is reachable : Yes – We verified it using Telnet and it can connect to Port 8172 and also verified Firewall rules as well – All good!
- Verified all Web deploy related services are fine or not – and they are fine – We tried to run Powershell script given by Microsoft in Reference Link #2 – But no luck
- Verified username and password are fine – They are fine – Verified it using remote desktop with those credentials
- Reinstalled MSDeploy on SBX – and It didn’t helped
- No any log entry in MS Deploy IIS Log [HEAD/POST]
- Tried with MSDeploy command : msdeploy.exe -verb:dump -source:iisapp="Default Web Site",computername=https://<HOSTNAME>:8172/msdeploy.axd?site=Default%20Web%20Site,username=<USERNAME>,password=<PASSWORD>,authType=basic -verbose –whatif
Fired MS deploy command from my local – as given in earlier email and monitored packets on SBX server using TCPView and netstat command
- Found that : TCP Packet gets sent on 8172 and status : SYNC_RCVD – and then it drops packet
- As I understand this is how flow works:
- Web Management Service listens on 8172
- If request received it calls MsDeploy.axd
Somehow, packet gets reached to Machine – But after that it should forward it to IIS – And in turn IIS will send it to MsDeploy – And looking at log files – Packet is being dropped at machine level
References:
- http://stackoverflow.com/questions/12959501/web-deployment-task-failed-when-using-webdeploy-in-vs2012
- http://stackoverflow.com/questions/12959501/web-deployment-task-failed-when-using-webdeploy-in-vs2012
- http://www.iis.net/learn/publish/troubleshooting-web-deploy/troubleshooting-web-deploy-problems-with-visual-studio
- http://stackoverflow.com/questions/5841370/cant-get-my-ec2-windows-server-2008-web-stack-instance-to-receive-publishings
- http://stackoverflow.com/questions/11479927/visual-studio-2012-web-deploy-to-windows-server-2008-r2-with-iis-7-and-msdeploy
- http://stackoverflow.com/questions/11479927/visual-studio-2012-web-deploy-to-windows-server-2008-r2-with-iis-7-and-msdeploy
Anything obvious -- We are missing?
IIS 6 on windows 2003 SP2 x64 migration to IIS 8.5 on windows 2012 R2
Hello,
I have downloaded a tool webdeploy 3.5 it works fine on windows 2003 x32 but when I am trying to run it on windows 2003 x64 it is giving me an error:
C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:sync -source:metakey
=lm/w3svc/1 -dest:package=Site1.zip
Error: An attempt was made to load a program with an incorrect format. (Exceptio
n from HRESULT: 0x8007000B)
Error count: 1.
Does anyone know how to fix it?
Setting up Connection string in Web Deploy for workflows
I have an issue with publishing workflows to the Test and prod environments.
i am using web deploy for this. The issue is that when i use "Web Deploy" method for publishing, i am getting only the connection strings in the connectionStrings tag in web.config.
I have another connection string in system.servicemodel tag that I am using for my workflow. Can someone please help me how to change this using Web Deploy method.
Need Basic Web Deploy Instructions
We've just migrated from co-located servers and an old version of Visual Studio (2k5) to Visual Studio Online (w/ VS 2k13) and Azure. We're using an Azure VM running IIS8, not an Azure website.
We've loaded our solutions into new VS2k13 Web Applications and I've worked out all the build errors and obsolete code. However, I can't seem to get Web Deploy to work. I've followed all sorts of different instructions and threads I've read but can't seem to get it to work at all.
What I can't seem to find is a basis How To anywhere to deploy a website from VS2k13 to an Azure VM using Web Deploy? Can anyone please link me to a basic how to article that explains the set up on the server and the client to get this application deployed?
MSDeploy escaping XML special characters in parameter values
I am using MSDeploy.exe to deploy a web app. One of the values that I am modifying is my Entity Framework (database first) connection string. When I use the following parameter:
-setParam:name="foo_container",value="metadata=res://*/foo.csdl | res://*/foo.ssdl | res://*/foo.msl;provider=System.Data.SqlClient;provider connection string="data source=localhost;initial catalog=foo;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework""
the web.config value is written as follows:
"metadata=res://*/foo.csdl | res://*/foo.ssdl | res://*/foo.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=localhost;initial catalog=foo;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;"
The & that is already part of an escaped sequence (") is getting escaped again when it is written out to the file: &quot;
This causes an exception when running the web app as the connection string is not valid. Is there a way to tell MSDeploy that a parameter should be treated as a literal and not escaped? I have tried various escaping strategies with no luck.
thanks, Brian
“CustomFields” error when using MSDEPLOY to export\import Website between servers
I get the following message when trying to import a website I exported using MSDEPLOY.
Microsoft.Web.Deployment.DeploymentException: Child object 'customFields' cannot be added to object 'logFile'. The 'logFile' provider may not support this deployment. at Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source, Int32 position, DeploymentSyncContext syncContext) at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObject sourceObject, Int32 position) at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source) at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source) at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(DeploymentObject dest, DeploymentObject source) at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source) at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject) at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable`1 syncPassId, String syncSessionId) at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions) at Microsoft.Web.Deployment.UI.InstallProgressWizardPage.OnWorkerDoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
What did I miss?
Thanks