webdeploy

Jenkins, MSBuild and Web Deploy: Unable to create Web Package

China☆狼群 提交于 2019-12-05 05:13:05
问题 I'm currently trying to create a Jenkins CI job on a build server (Windows Server R2), which has turned out to require a lot more work without installing Visual Studio. For this job, I am trying to build a Web package using the .csproj file from my Visual Studio project. Here's a look at my MSBuild action setup in Jenkins: MSBuild Version: .NET 4.0 MSBuild Build File: MyProject\MyProj.Web\MyProj.Web.csproj Command Line Arguments: /T:Build;Package /p:Configuration=Release;PackageLocation="C:

Ignore file from delete during WebDeploy

风流意气都作罢 提交于 2019-12-05 05:12:21
I'm using TeamCity to build and deploy a collection of MVC Applications via msbuild and WebDeploy. In a step previous to my solution build/deploy, I copy an app_offline.htm to the deploy directory so that I can perform SQL updates and other web/solution management steps including the build. One of the setting in the WebDeploy is to delete files that aren't included in the project, or not needed to run the site. This deletes my app_offline.htm file each time. While I understand this is kind of the desired result, is there a way to exclude this file from being deleted from the deployment

Installing Web Deploy on IIS 7+ with Shared Configuration enabled

大城市里の小女人 提交于 2019-12-05 01:57:32
We have a web farm environment running IIS 7.5 on Windows 2008R2. We use shared configuration and web storage replication. We tried to install Web Deploy (v3.5) on one of the servers but receive an error message saying that Web Deploy is not supported with Shared Configuration. Is it possible to run Web Deploy in a shared configuration environment? If so how? NOTE: We have figured this out so I am posting the answer here. There is little to no documentation that we could find on this topic so I thought it best to host the info here so the rest of the world can easily find it. Yes Web Deploy

Web Deploy (aka MsDeploy) returns ERROR_CONNECTION_TERMINATED

微笑、不失礼 提交于 2019-12-05 00:12:20
I am trying to execute from command line msdeploy like for example following command: "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package="Templates\TemplateAppPool.zip" -dest:appPoolConfig="MyAppPool",computerName="...",userName="...",password="..." -replace:objectName=processModel,targetAttributeName=idleTimeout,replace=00:45:00 -replace:objectName=add,targetAttributeName=managedPipelineMode,replace=Integrated -allowUntrusted And getting following error Info: Using ID '0b2ec654-ae21-4848-897d-f644d95b4bfa' for connections to the remote server. Error Code:

Cannot Connect to Windows Azure VM (Server 2012 R2) Web Deploy Service

空扰寡人 提交于 2019-12-04 19:33:00
问题 I can't seem to be able to deploy a site to a windows server 2012 r2 running IIS and Web Deploy in Azure VM. I have verified that the port is open, the credentials are correct and the site name as well. I tried using http: and https: also tried using msdeploy.axd end point and the MSDEPLOYAGENTSERVICE one nothing. Check is the services are running and if I can connect to the machine which at can on port 80 to the default site. Tried connecting from multiple connections I get the same result..

How to automate Web Deploy of a specific Publish Profile with an MSBuild script?

笑着哭i 提交于 2019-12-04 18:56:45
问题 I have a Visual Studio 2012 solution, which contains three web projects. Each of them has a web deploy publish profile, which creates a package in a specific directory. The solution itself also has a special Deployment configuration. Using msbuild, building the solution in a Deployment configuration is easy, but how can I publish the 3 web projects using a specific profile using an msbuild build script/task (rather than invoking command lines) ? 回答1: I think you can try the following: msbuild

Visual Studio 2012 Web Deploy to Windows Server 2008 R2 with IIS 7 and /msdeploy.axd 404 error

我怕爱的太早我们不能终老 提交于 2019-12-04 15:38:51
问题 In Visual Studio 2012 RC when I try to validate a Web Deploy connection I get this error message: ERROR_DESTINATION_NOT_REACHABLE The required Web Management Service is started on the server and Web Deploy 3.0 RC is installed. Then using Remote Desktop Connection I log on the server and go check IIS logs located at C:\inetpub\logs\LogFiles\W3SVC1 . There I can see my attempts to validate the connection because they contain my IP address: 2012-07-13 20:58:49 185.201.117.17 HEAD /msdeploy.axd

How can I pass MSDeploy-style parameters to MSBuild via the commandline?

风格不统一 提交于 2019-12-04 14:29:20
I am setting up TeamCity to deploy our Website Project application (using a *.wdproj) and Web Deploy application to IIS. I have a build configuration that uses MSBuild.exe with the MSDeployPublish to build and then deploy the application. We now want to get the application to deploy to multiple target environments, therefore need a way to supply different settings based on the target environment. I have added a parameters.xml file to the Web Deployment Project, and have verified that the parameters set in here are making all the way through the target IIS server and being correctly applied -

TFS 2012 Build Definition for web deployment ignores parameters defined in project files

北城以北 提交于 2019-12-04 13:17:49
I'm trying to set up a TFS 2012 build definition that will build a solution and deploy several web apps within the solution. I came across this article that seems to address exactly what I'm trying to do and also seems to agree with the solution mentioned here . So I tried implementing the build definition/project configuration as described in that article, but no matter what I do, it seems to be ignoring the parameters I put in the specific configuration property group of the csproj files which look like this: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'MyConfig|AnyCPU' "> .

MSDeploy.exe can connect as Administrator, but not any other Windows account

时光怂恿深爱的人放手 提交于 2019-12-04 08:24:39
问题 I'm integrating MSDeploy into my build process, and having problems authenticating. The following command works fine: msdeploy -verb:sync -source:appHostConfig="KitchenPC",computerName=192.168.0.3,userName=Administrator,password=secret -dest:package=c:\DeployTest\KPC.zip However, this does NOT work: msdeploy -verb:sync -source:appHostConfig="KitchenPC",computerName=192.168.0.3,userName=kpcpublish,password=secret -dest:package=c:\DeployTest\KPC.zip And yields the error: Error Code: ERROR_USER