webdeploy

Publish to Azure fails with “ Unrecognized link extension 'contentLibExtension'” Error

雨燕双飞 提交于 2019-12-22 06:15:27
问题 I am trying to publish ASP.NET MVC 6 App to Azure with Visual Studio 2015 CTP. And getting the following error Publishing with publish method [MSDeploy] Calling msdeploy with the command: ["C:\Program Files (x86)\IIS\Microsoft Web Deploy\msdeploy.exe" -source:IisApp='C:\Users\*****\AppData\Local\Temp\AspNetPublish\NgCalendar-28\wwwroot' -dest:IisApp='ngcalendar',ComputerName='https://ngcalendar.scm.azurewebsites.net/msdeploy.axd',UserName='$ngcalendar',Password='{PASSWORD-REMOVED-FROM-LOG}'

Installing Web Deploy on IIS 7+ with Shared Configuration enabled

柔情痞子 提交于 2019-12-22 04:07:49
问题 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

How to set destination website on MSDeploy.exe command line

こ雲淡風輕ζ 提交于 2019-12-21 03:37:48
问题 I have a Web Deploy 3.5 package that I want to deploy to a remote server. How do I specify the name of the site on the MSDeploy.exe command line? Here's what I have so far: C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe -source:package='package.zip' -dest:auto,computerName="ServerName",includeAcls="False" -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"package.SetParameters.xml" But the name of the site

WebDeploy with MSBuild Not Deploying from TeamCity

社会主义新天地 提交于 2019-12-20 21:52:40
问题 I am trying to use MSDeploy to deploy an MVC project to the server using TeamCity. When I do this on my computer in powershell, using the following command: msbuild.exe .\mvc.csproj /p:PublishProfile=DevServer /p:VisualStudioVersion=11.0 /p:DeployOnBuild=True /p:Password=MyPassword /p:AllowUntrustedCertificate=true It builds the project and deploys it to the server (info defined in the DevServer publish profile) perfectly. The output shows an MSDeployPublish section at the end, in which I see

WebDeploy with MSBuild Not Deploying from TeamCity

僤鯓⒐⒋嵵緔 提交于 2019-12-20 21:52:32
问题 I am trying to use MSDeploy to deploy an MVC project to the server using TeamCity. When I do this on my computer in powershell, using the following command: msbuild.exe .\mvc.csproj /p:PublishProfile=DevServer /p:VisualStudioVersion=11.0 /p:DeployOnBuild=True /p:Password=MyPassword /p:AllowUntrustedCertificate=true It builds the project and deploys it to the server (info defined in the DevServer publish profile) perfectly. The output shows an MSDeployPublish section at the end, in which I see

Visual Studio Web Deploy to IIS 6

ⅰ亾dé卋堺 提交于 2019-12-20 09:59:42
问题 Has anyone successfully used the new Web Deploy feature of VS2010 to deploy a web site to IIS 6 running on Windows Server 2003? When I try I get the following error: Web deployment task failed. Could not complete the request to remote agent URL 'https://myserver:8172/msdeploy.axd?site=mysite'. Unable to connect to the remote server. No connection could be made because the target machine actively refused it. I can deploy locally (from VS installed on the server to IIS on the server) and the

Make sure all *.cshtml files are set to be “Content” for Build Action

倖福魔咒の 提交于 2019-12-20 09:47:18
问题 A few times when I copy-paste *.cshtml files, Visual Studio for some reason sets Build Action on these files to be "None": This is impossible to detect when you work locally, because the files are present. But when you deploy through WebDeploy, files marked as "None" on Build Action are not packaged. As a result I get non-working application on the server. Question: is there a way to automatically detect such occurrences and prevent? 回答1: You could extend the .csproj with a small snippet that

Breaking MsBuild package & deploy into separate MsBuild and MsDeploy commands

心不动则不痛 提交于 2019-12-20 08:46:53
问题 I'm having a few problems breaking out an MsBuild package+deploy command into two separate commands. (I need to do this to pass additional parameters to MsDeploy). The command that works fine looks like this: msbuild "src\Solution.sln" /P:Configuration=Deploy-Staging /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://192.168.0.1:8172/MsDeploy.axd /P:DeployIISAppPath=staging.website.com /P:AllowUntrustedCertificate=True /P:MSDeployPublishMethod=WmSvc /P

What Parameters do I need to pass to the PackageWeb powershell script to make it deploy to my remote machine

好久不见. 提交于 2019-12-20 04:49:50
问题 still, I am fiddling around within the MSBuild-/MSDeploy-world and have been scratching my head far too often lately. I want to be able to build a Web Application Project only once and deploy it to multiple configurations . I found this PackageWeb-Solution from Sayed I. Hashimi which enables you to add a Nuget-Package to your WAP that will add additional files to a generated WebDeploy-Package. (You can actually take a look at this 5-Minute-Video to get the basics of what this post is about.)

Azure staging web deploy fails with ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP but not for production

杀马特。学长 韩版系。学妹 提交于 2019-12-19 17:41:20
问题 I'm trying automated web site deployment in Azure and I'm at the phase were I run web deploy commands. The command for production works fine and updates the content but the one for staging is failing with the error code in the title. I'm no sure were the problem is and if it is an authorization one I'm not sure where to set more permissions for the staging account. This is the production command (which works): "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:package=