Questions tagged [microsoft-web-deploy]
Microsoft Web Deploy is a tool to simplify the migration, management, and deployment of IIS Web servers, applications, and sites. Administrators can use command-line scripting with Web Deploy to synchronize IIS 6.0 and IIS 7.0 servers or to migrate an IIS 6.0 server to IIS 7.0.
microsoft-web-deploy
148
questions
126
votes
3
answers
29k
views
Error: "The configuration section 'system.webServer/management/delegation' cannot be read because it is missing schema
I am trying to publish a website from my computer to an IIS web server via web deploy.
I have 3 servers. All servers have installed the same things (Webdeploy etc.) and the services are started (Web ...
30
votes
4
answers
37k
views
How to configure Web Deploy on Windows 10 pro
How can I configure Web Deploy on Windows 10? Should it work?
I found information about Web Deploy on Windows 8, there it isn't working.
How is it in Windows 10?
30
votes
3
answers
30k
views
Web deploy error to IIS - application pool managedRuntimeVersion
When trying to deploy an ASP.NET application deployment package to IIS, I receive an error
(The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v2.0'. ...
26
votes
2
answers
2k
views
Web Deploy to Azure doesn't force Web App to pickup new changes
I have an automatic deployment configured from my GIT to Azure App using Web Deploy. Every time when new code pushed to the repo, build is started, then deployed to the Azure with Web Deploy.
The ...
15
votes
6
answers
19k
views
msdeploy error ERROR_USER_UNAUTHORIZED: Web deployment task failed. using IIS7, TFS2010, VS2012
Using Visual Studio 2012, TFS 2010, IIS7
Getting the following errors when I try to build/deploy:
Any CPU | Test
1 error(s), 1 warning(s)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\...
14
votes
1
answer
12k
views
What Jenkins plugin can be used for .NET web site deployment?
We use:
- SVN
- Jenkins
- MS Build plugin
We have several Web Form/MVC/Web services.
We are going to setup Microsoft Web Deploy and run bat file from Jenkins.
Maybe someone can suggest better way ...
13
votes
1
answer
4k
views
Publish from Visual Studio and automatically encrypt appSettings using aspnet_regiis
I have web application that is deployed to my local IIS server under Sites\Default, it works fine and right now I want to make it more secure - I want to encrypt connection strings and appSettings.
...
12
votes
4
answers
22k
views
Web deploy error ERROR_DESTINATION_NOT_REACHABLE
I am trying to deploy my application using the following msdeploy command:
MSDeploy.exe -source:contentPath="C:\Users\myUser\Documents\ui\dist" -dest:contentPath='c:/inetpub/wwwroot/dist',...
12
votes
2
answers
6k
views
Web Deploy API - deploy a .NET 4.5 application
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:
DeploymentBaseOptions destinationOptions = new ...
12
votes
2
answers
7k
views
Setting up automatic backups in Web Deploy tool
I've been struggling to setup automatic backup, but seems to have hit a wall.
Following this document, and using Powershell, I've enabled the backups (TurnOn-Backups -On $true, then Configure-Backups -...
12
votes
1
answer
8k
views
How do I target an already existing application pool with webdeploy?
I am trying to make sure that my app gets deployed to a specific application pool that already exists when using Web Deploy. The application pool should be configurable by the user using the GUI when ...
11
votes
1
answer
8k
views
How to deploy ASP.NET app to Amazon EC2 using MS WebDeploy?
I have an ASP.NET MVC site that is hosted on an Amazon EC2 service. I want to establish auto deploy with MS WebDeploy to this site. I've found a great article about this: Automating Deployment with ...
11
votes
3
answers
5k
views
IIS Web Deploy - ERROR_USER_NOT_ADMIN
I have a server which is part of a domain. When I publish a web application from Visual Studio with a domain user everything is ok. But when I try to publish with a local machine user (not part of a ...
11
votes
1
answer
7k
views
Why doesn't my .wpp.targets file get applied on my build server?
I have a custom .wpp.targets file which is setting some ACL's. When I build from within visual studio, the source manifest file that is generated contains the custom ACL's.
When I run from my build ...
10
votes
1
answer
1k
views
How to perform web deploy in ASP.NET 5?
When I click publish ASP.NET 5 project in visual studio, only 3 target I can choose:
Microsoft Azure Web Apps,
Import,
File System
There're no Web Deploy or Web Deploy package as shown in ASP.NET 4....
9
votes
1
answer
8k
views
Make Git ignore PublishProfile for WebDeploy in Visual Studio
I host ASP.NET MVC app on Azure so I use WebDeploy. There is a folder with my Publish Profile which include AppName Web Deploy.pubxml which include password for db. So if I pushed changes to Github ...
9
votes
1
answer
2k
views
automatic backup for web deploy 3 (IIS) - to exclude folders in the backup
I have managed to setup Web Deploy Automatic Backups by following this guide, which works great. However, in my websites I have a folder relative to the root /uploads/ which contains all user-...
7
votes
4
answers
9k
views
MSBuild error MSB3086, with TeamCity
I am trying to build and deploy a .NET 4 project using MSBuild Web Deploy and TeamCity, I got this working fine (eventually) with an instance of TeamCity running on my local development machine, ...
7
votes
3
answers
2k
views
MSDeploy throwing weird error: Stream data of xxxxx.dll is not yet available
I am deploying a number of .Net projects to different servers. To do this my team is using TFS to build, then from the build template calling a ps1 script that uses msdeploy to push to all the ...
7
votes
3
answers
4k
views
Always remove Angular dist folder contents with WebDeploy on Destination
We've got a single page application on Angular 5 with an ASP.NET backend, and when we compile it, the release contents for Angular are output to a folder "Project\dist".
This works great on local ...
6
votes
2
answers
3k
views
Publish Wizard Errors in VS2010 and 2012
I've been using the Publish Wizard in VS2010 to deploy my MVC app and I've got no issues there but intermittently the publish will fail with the following error.
Error 23 Web deployment task ...
6
votes
1
answer
6k
views
Is it safe to rename the Default Web Site in IIS 7.5?
I am having a problem deploying to Default Web Site using web deploy. The problem is similar to this: MSDeploy batch file does not handle quotes anymore where web deploy is choking on deployment ...
6
votes
1
answer
4k
views
Web Deploy to multiple servers at once from within Visual Studio 2010
What is the easiest way to deploy to multiple servers with as few clicks as possible from within Visual Studio? We are using web deploy, not FTP or file system if that is helpful.
6
votes
1
answer
979
views
Web deploy from multiple computers
I work on a website on multiple computers, my work and my home pc. The source is maintained under a git repository. I use Web Deploy to publish the website to IIS on the public server. Everything ...
5
votes
2
answers
6k
views
Create folder and set ACL with web deploy
How do I create a folder using microsoft web deploy? Also, when I have created that folder how do I set the ACL on it?
Can I do so when publishing to file system using Visual Studio? Or do I have to ...
5
votes
1
answer
3k
views
pass parameters to batch file in msdeploy runcommand
I am not able to get this to work
call "%MSDeployPath%msdeploy" -verb:sync -source:runCommand='backup.bat param1' -dest:auto,computername=10.xx.xx.xx,username=xxx,password=yyy
It gives me:
...
5
votes
4
answers
5k
views
Better alternative to Web Deploy Projects
I have a solution with a fair few projects, 3 of them web-based (WCF in IIS / MVC site). When the solution builds, it dumps each of the components of this distributed system in a 'Build' folder. ...
5
votes
1
answer
7k
views
MSBUILD web deploy package does not include the project reference DLL's
When I try to create a package for web deploy using msbuild it only includes the projects dll. The package zip file or the temp directory does not include the referenced project's dlls.
I've ...
5
votes
2
answers
5k
views
How do I deploy a web deploy package to Azure Web Sites via command line?
What we do today
Currently, we Web Deploy to Windows Azure Web Sites (WAWS) via MSBuild for our test environment using the following command
MSBuild.exe /p:Configuration=Test /p:DeployOnBuild=true /...
5
votes
1
answer
3k
views
Why does aspnet_compiler need write access to the Temporary ASP.NET Files folder on my build server?
We use a CI server (Jenkins) to compile an ASP.NET project and deploy to our web servers.
I want to precompile the site before deployment to increase performance, so I've set the ...
5
votes
1
answer
3k
views
In what .targets file is the "Package" MSBuild target defined?
This pertains to Web Deploy and/or Web Deployment Projects (not sure what the relation is between those). Simply curious about the constituent Tasks that I might be able to recompose into a customized ...
5
votes
1
answer
2k
views
Web deploy to IIS without Visual Studio
I have a IIS v7.5 as my web server. This web server hosts not only ASP.NET web application, but also for PHP web apps for my company apps. What I want is to support deployment using web deploy without ...
5
votes
0
answers
183
views
How to create a deployment package with SQL scripts in IIS
Using IIS-10, Web Deploy v3.6, Windows 10.
It is an ASP.NET Website (not application) using SQL Server 2014 for the back-end.
I was able to successfully create and deploy the package, but without ...
4
votes
1
answer
2k
views
XPath for web.config applicationSettings webdeploy parameters.xml file is not correct
I use webdeploy to deploy my web site project with a parameters.xml file I have been using a for a while. So far the parameters I've added are all element attributes and it all works well. But I am ...
4
votes
1
answer
2k
views
MSDeploy API - Allow Untrusted Certificate
I am trying to run remote MSDeploy commands using the MSDeploy API through c#.
I am running the following:
//test connection by pulling down file list
var sourceBaseOptions = new ...
4
votes
1
answer
730
views
Web Deploy 3.0 won't work on CI server
From my local machine to a development server, Web Deploy 3.0 works fine with Visual Studio 2012 publish profiles using the following command:
msbuild .\myproj.csproj /verbosity:d /p:DeployOnBuild=...
4
votes
1
answer
4k
views
MSDeploy Package has Missing Files
I'm using MSBuild to build a web application project and adding parameters to create the package file. All of that is good. I get two folders in the _PublishedWebSites output:
AppName
AppName_Package
...
4
votes
1
answer
1k
views
How can I skip deleting folders except a specified folder for a web deploy (msdeploy) sync?
Suppose I have a destination folder structure that looks like this:
D:\DEPLOY\DEST
│ 0.txt
│
├───a
│ a.txt
│
└───b
├───b1
│ │ b1.txt
│ │
│ ├───b1a
│ │ b1a....
4
votes
3
answers
12k
views
msdeploy error ERROR_USER_UNAUTHORIZED: Web deployment task failed
Web deployment task failed. Error ERROR_USER_UNAUTHORIZED
We are using Tfs Build Automation and msdeploy for publishing an web application on remote machine.
On "Visual Studio Build" step we set ...
4
votes
1
answer
1k
views
add powershell script to web deploy package for mvc site
I'm about to deploy a MVC4 site using the Web Deploy utility in VS2012. As I can't have direct connection to the server, I'm generating a 'Web Deploy Package' publish profile, which I upload and ...
4
votes
2
answers
8k
views
Deploying to FTP/Web Deploy In Visual Studio 2015
I cannot figure out a way to publish a web project in Visual Studio 2015 CTP using web deploy or FTP. In the Publish wizard, there are only options for Azure, Import and File System. In Visual Studio ...
3
votes
2
answers
5k
views
Visual Studio 2013 Premium solution load errors after Update 3
I installed VS2013Update 3 and now I get errors when opening an solution:
The 'Microsoft.VisualStudio.Web.Publish.WebPublishPackage,MircosoftVisualStudio.Web.Publish' package did not load correctly.
...
3
votes
2
answers
2k
views
MSDeploy setParameter.xml not transforming web.config
In my "myconfig" config profile transform for web.config i have this under appSettings:
<add key="my.config" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" value="derp" />
When I ...
3
votes
2
answers
4k
views
Deploying a custom static folder under wwwroot
We have a custom folder under wwwroot named Contents with some inner folders shaping a structure for organizing later uploadable files, in the publish mode it is not deployed (On local or server)
...
3
votes
2
answers
4k
views
Publish Profile Copy Files To Relative Destination
I have a publish profile in visual studio 2017 I am trying to copy files from another project. No issues doing so when going to a simple relative directory. However, have a problem with the double ...
3
votes
2
answers
1k
views
MSBUILD web deploy package zip file does not inherit permissions from parent folder
I'm creating a zip file from msbuild using the package target. It creates it fine and the folder I'm putting it in has permissions for a user that allows that user to have full control of the folder. ...
3
votes
1
answer
4k
views
IIS 7.0 IIS Manager does not have the option "Manage Packages" available
Trying to deploy a mvc package, but looking at the instructions here:
http://vishaljoshi.blogspot.com/2009/07/importing-web-package-into-iis-manager.html
I do not see the "Manage Packages" option ...
3
votes
1
answer
1k
views
web deploy - IIS Manager User IISWMSVC_AUTHORIZATION_SERVER_NOT_ALLOWED
I have an azure VM with IIS and all the required firewall rules for web deploy setup. I can deploy my site if I use my windows admin account, but not with an IIS Manager user.
I think I've created ...
3
votes
3
answers
1k
views
Visual Studio 2015 exception SqlScriptPreprocessSqlVariables when running web publish wizard with update database
Update:
I have reproduced the same Error with a new empty VS2015 WebApplication project.
Added a connectionString to a new empty SQL database
Added a sql-script file to the solution and selected ...
3
votes
1
answer
899
views
Visual Studio 2012 'Publish Profile' to Windows Server 2008 - 'Destination not compatible' error
I am deploying a website form Visual studio 2012 to a Windows Web Server 2008 R2.
I can connect to Web Deploy fine - though I get this error:
1>(27/05/2013 21:03:29) An error occurred when the ...