Questions tagged [msdeploy]
Microsoft command line tool for deploying, synchronizing and packaging web applications, content and configuration settings to IIS Web Servers.
1,106
questions
0
votes
0
answers
17
views
Trigger Visual Studio Publish functionality via command line
I'm tasked to automate the deployment of multiple, related ASP.NET 4.8 projects to Azure WebApps. The solution contains multiple projects, some of which represent virtual applications in the resulting ...
0
votes
1
answer
78
views
Azure App Service Deploy: MSDeploy Skip Delete of web.config file is Not working
The MSDeploy skip delete is not working for a specific file (web.config).
This is the Azure App Service folder structure:
wwwroot\web.config
And these are the skip command that I used but did not work:...
0
votes
0
answers
37
views
Deployment Failure (Slack → Azure)
We're trying to integrate Jumpcloud with Slack using Azure but we're facing an error:
{"code":"DeploymentFailed","message":"At least one resource deployment ...
0
votes
0
answers
6
views
Pass Publish profile username and password into <Target> Exec command. MsDeploy
So we have a script we need to run on our before we publish to our server that requires a username and password login in order to run.
<Target Name="StopScript" BeforeTargets="...
0
votes
0
answers
31
views
MSdeploy not update the destination folder throwing an error. - Source filePath does not match destination differing in attributes
I'm trying to deploy a web application into remote machines using MSDeploy and powershell script. Some files are not getting copied over since the files are in the subfolders. Unable to track down ...
0
votes
1
answer
86
views
How to deploy/reference built files in Azure DevOps Pipeline?
I have created a pipeline in Azure DevOps. First it restores Nuget, then it builds the solution with the following arguments:
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=...
0
votes
0
answers
24
views
Unable to deploy by Bamboo MS Deploy on target machine
Command - msdeploy.exe -source:package='path/file.zip' -dest:auto,computerName=IP,userName=.uname,password=123,authtype=basic,includeAcls=False -verb:sync -disableLink:AppPoolExtension -disableLink:...
0
votes
0
answers
36
views
MSBuild ignores skip rules in .csproj
MSbuild.exe should generate a ????.deploy.cmd file which calls MSdeploy.exe with skip actions if configured on .csproj. In my case, the file ????.deploy.cmd is created but skip actions not.
I know how ...
0
votes
0
answers
134
views
Web deploy failing, says DESTINATION NOT REACHABLE
I honestly don't know where to start apart from mentioning I've tried absolutely everything and I feel like banging my head against the wall!
I've configured my IIS according to the Microsoft docs and ...
0
votes
0
answers
39
views
Release an ASP.NET Core website with MSDeploy in Azure DevOps
I have my ASP.NET Core project and I want to create the deploy to the server. The machine has MSDeploy installed and I can deploy from my machine. I want to use Azure DevOps to do the same. I found a ...
1
vote
0
answers
93
views
Microsoft Web Deploy backup fails and doesn't recover
I've recently started working with Microsoft Web Deploy.
I got backups working in a basic configuration and now I'd like to experiment with adding some folder exclusions to the .pubxml file in my ...
4
votes
1
answer
3k
views
Publishing a .NET 6 project with C# 10 implicit usings via Visual Studio 2022
When publishing an ASP.NET Core 6 web application with C# 10's <ImplicitUsings /> enabled to an Azure App Service from a Visual Studio 2022 publishing profile, the publishing build fails due to ...
0
votes
1
answer
246
views
ARM Template - Deploying function using MSDeploy with zipped code in Azure Storage Blob
I'm trying to deploy an Azure function for which the zipped contents have been placed in a blob in another subscription and resource group. The function app is deployed, but there's no function under ...
1
vote
0
answers
140
views
Why do I get file not found error when publishing angular project using MSBuild
I have the .NET solution with several api project and 1 web project. This web project is SPA application written on angular 10. In build events of this project I do have following command:
cd $(...
1
vote
1
answer
164
views
MSBuild publish fails to create zip, and also strangely deletes project code files and directories
We have an solution developed using the following technologies:
Visual Studio 2015
.NET Framework 4.8
The solution contains quite a few WCF Web Services that we deploy to an IIS Server
My plan to ...
0
votes
0
answers
320
views
Azure DevOps Release Pipeline Powershell Script MSDeploy Error
I have a .NET web solution in Azure DevOps. I'm trying to set up CI for my dev subdomain. So far I have followed this article to set up my build pipeline which appears to be working.
So, I followed ...
0
votes
1
answer
111
views
Publishing using MSDeploy to Azure App from a different computer updates all the files
Currently in the process of potentially moving our sites to Azure. As it stands we are testing deploying to Azure app service, everything works and publishes fine using one computer. However if ...
0
votes
1
answer
62
views
WebDeply - WDeployConfigWriter fails login. Not expired password
Using Visual Studio 2019 to publish to Windows Server 2016, only preview and full publish failes. Single files publish fine. According to the logs the problem is that the wrong password for ...
0
votes
0
answers
79
views
Error: Unable to get the remote environment variable 'WindowsDirectory' using msdeploy tempagent
When using msdeploy to deploy an IIS app to a remote server, using the Web Deploy On Demand (tempagent) feature, I am getting this error:
./myApp.deploy.cmd : Error: Unable to get the remote ...
2
votes
0
answers
40
views
How to decode MSDeploy.MSDeployProviderOptions?
Artifacts published by my Azure DevOps pipeline contains an archive.xml file. This contains a XML attribute called MSDeploy.MSDeployProviderOptions with a cryptic value. How do I decode the value to a ...
0
votes
1
answer
53
views
How to pass empty argument to msdeploy powershell deploy command
In Below command I want to skip cmdParamString argument since that is not required for one of apps deployment , and its required for other apps deployment so cant change this common deploy command , ...
0
votes
1
answer
92
views
What is MSDeploy.MSDeployProviderOptions in archive.xml?
Artifacts published by my Azure DevOps pipeline contains an archive.xml file. This contains a XML attribute called MSDeploy.MSDeployProviderOptions with a cryptic value. Is there a way to decode the ...
1
vote
0
answers
101
views
Failed to deploy web application to IIS using VS2019 - DLL is locked
I have this application that I am trying to deploy on my production environment.
I am using the MSDeploy webPublish Method and it always fail at the end with the following message.
Web deployment task ...
0
votes
0
answers
159
views
Configure Application Pool in a web publish package on IIS
I´m trying to configure the application pool to .NET v4.5 Classic from the default DefaultAppPool for a web service deployed in IIS 10, developed with Visual Studio 2019.
These are my steps:
I ...
3
votes
2
answers
602
views
GitHub actions publishes my site and ends with HTTP ERROR 500.30
My original question was about a deployment issue not showing wwwroot folder on the remote server. It turned out, I was wrong and that wasn't actually the issue. So I've edited my question (and the ...
1
vote
1
answer
226
views
How to convert from VS web deploy to command line MS deploy
Within Visual Studio, I use Web Deploy.
Within the settings, it asks for 4 fields to be filled one (and 1 optional)
I am guessing, behind the scenes, it is calling msdeploy.exe and passing them as ...
1
vote
1
answer
379
views
MSDeploy deploy c# console application on remote server
There will be used Jenkins automation server.
What I need to do during deployment:
Stop console application
Deploy via MSDeploy service
Run the console application again
The main problem is that the ...
1
vote
1
answer
876
views
Deploying a web application to an Azure App Service using MSDeploy
I'm having a lot of trouble deploying my web application to an Azure App Service using MSDeploy. What are the command line arguments I need to use?
0
votes
1
answer
328
views
dotnet publish behind proxy 407
I am trying to setup my gitlab build server to deploy an ASP.NET Core project using msdeploy. Now the problem is that my deploy gets blocked by the proxy server...
How do I configure the proxy in the ...
0
votes
0
answers
53
views
MSdeploy.exe how to use special character in setparam value
"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"
We would like to use -setParam:"TestParam"="hello&1", but PowerShell sees the & character as the ...
11
votes
0
answers
1k
views
Build ASP.Net Core Deploy Package on Linux
I am trying to build a web deploy package on the .net core sdk docker image to be used to deploy to a windows server running iis (the deployment being done on a seperate windows vm). This is the ...
0
votes
1
answer
260
views
DACPAC pre-pre script avilale?
I am facing an issue while publishing DACPAC. (SQL 2012)
I have table in production that is having null,not null values column.
I need to make this column not nullable and drop another column.
Since ...
1
vote
2
answers
69
views
msdeploy.exe with runcommand: problem executing commands
I want to use msdeploy to start a batch file on my remote server.
Usage is like
msdeploy.exe -verb:sync -allowUntrusted:true -source:runCommand="c:/scripts/x.bat" -dest:auto,computerName=https://...
1
vote
1
answer
866
views
How to publish asp.net website using AzureDevOps in ftp
I want my project (asp.net api) to be enabled CI/CD using AzureDevOps as my CI/CD Tool.
I want my published files to uploaded to my hosting provider via FTP.
Currently what happens is when build the ...
0
votes
1
answer
751
views
Hosting a Django app on a Windows machine
I've developed a django web application which I now want to deploy so that everyone in my organization can start accessing the website. However, I do not have a dedicated server location to actually ...
0
votes
1
answer
143
views
Function MSDeploy and Event Grid Subscription Race Condition in ARM Template
I am deploying a function using MSDeploy extensions and then deploying event grid subscription with this function as endpoint. Event grid deployment fails with message -
"details": [
{
"...
2
votes
1
answer
2k
views
Replace parameters.xml or setParams.xml with Azure DevOps Release Pipeline variables
I have a custom config file, which contains parameters to replace at release time with Release Pipeline variables. The replacement of the value in the config file works. If the setParams.xml is bound ...
0
votes
1
answer
3k
views
Set Application Pool in IIS Deployment with Azure Release Pipeline
I'm deploying an IIS Web App with IIS Web App Deploy Task in Azure DevOps Release Pipeline. This works good but don't set the correct application pool. I'm trying it with set a Parameter in Parameters....
0
votes
0
answers
345
views
How do I deploy an Asp.Net Core app on a web farm?
Currently we have 4 separate IIS servers all running behind an HA Proxy load balancer. With Traditional ASP .Net, we've been taking a web deploy package and loading them to the first server, and then ...
0
votes
1
answer
145
views
Why does MSDeploy on AzureVM Stops working? ERROR_COULD_NOT_CONNECT_TO_REMOTESVC. (500) Internal Server Error
I have a MSDeploy installed on an Azure VM. I could easily deploy from VS2019 to the VM in a click. That was working until now, nothing changes(albeit a windows update few days ago).
All of a sudden ...
2
votes
0
answers
437
views
ERROR_CONNECTION_TERMINATED on web deploy
We have a powershell script that uses MSDeploy to publish to an azure web app.
Currently the build is failing with the following error :
[error]Error Code: ERROR_CONNECTION_TERMINATED
More ...
0
votes
1
answer
651
views
MSDeploy not able to remote server
I have two machines, first one is my development machine and the second one a test machine which is remote. I have IIS and web deploy installed on both. When I do a deployment locally with msdeploy ...
0
votes
1
answer
1k
views
Issues with `msdeploy` (An error occurred when the request was processed on the remote computer.)
I have tried the following to deploy a .NET Framework 4.5 application to a remote windows server using Jenkins and msdeploy:
def deployDev(folder, virtualDirectory)
{
bat "\"C:\\Program Files\\IIS\\...
0
votes
0
answers
263
views
Jenkins MSdeploy Error Code: ERROR_USER_NOT_AUTHORIZED_FOR_IISAPP
I am trying to deploy a .net application to a remote IIS server using Jenkins. I am building using the MSBuild plugin provided by Jenkins. When using Visual Studio and publishing the app, the ...
1
vote
1
answer
24
views
IIS site cannot create (unwanted) App_Data Directory
So Recently we've been updating our C# codebase to Net48, with the Microsoft.Net.Sdk project type (easier package management, more microsoft managed options) However it seems that when running site ...
1
vote
1
answer
563
views
MSDEPLOY powershell script parameters does not work
I am trying to deploy a site (basically a zip file) from my machine to a remote machine. I was testing the same before I implement the actual remote deployment and I was working to the msdeploy ...
1
vote
0
answers
37
views
Why targeting .Net Framework v4.6.1+ generates so many assemblies? [duplicate]
We have a library used so far in Framework 4.6 which generates 3 dll assemblies. As soon as we targeted 4.6.1 & 4.6.2, suddenly it creates a good deal of dlls. From looking at them, I would guess ...
0
votes
1
answer
90
views
Set Application Pool name in ASP.NET Core
In My asp.net Core I want to set application pool name so that when I deploy/publish to IIS it uses that application pool name instead of default? Is that possible? Is there an attribute can be used ...
3
votes
2
answers
661
views
Using a 64-bit source and a 32-bit destination with provider appHostConfig is not supported
I am trying to do automatic deployment with MSDeploy but once I changed to using the app pool I received the following error:
Using a 64-bit source and a 32-bit destination with provider ...
0
votes
1
answer
169
views
Add double quotes to variable name for MS Deploy code in c#
Its a c# code written in a SSIS script task component.
PS_script + @"""$compname = " "\" + Row.computername"\" +
"$appname =" + Row.applicationname + " $appvalue = " + Row.appvalue +
"";
I ...