webdeploy

web.config transformation + msdeploy - keeping production passwords out of source control

醉酒当歌 提交于 2019-12-08 07:00:19
问题 Our web.config needs a database password. How can we specify this password while building the msdeploy (aka Web Deploy) package or when actually deploying? We build the msdeploy package using msbuild (/p:DeployOnBuild=true) and web.config transformations for environment-specific details. 回答1: Web.config transformations are, by design, build time transformations. I tend to only use them for "everything but debug" changes. What you want is an MSDeploy parameter. Assuming you are using a pubxml

Web Deploy to Azure fails “Could not create SSL/TLS secure channel”

◇◆丶佛笑我妖孽 提交于 2019-12-08 06:49:56
问题 I always deployed from my local machine to Azure (Classic cloud service) but from yesterday I get this error: Could not complete the request to remote agent URL 'https://[MYNAME].cloudapp.net:8172/msdeploy.axd?site=Default Web Site'.The request was aborted: Could not create SSL/TLS secure channel The port is open. The web deploy is installed. As I see nothing has changed. I tried to install a new version of Web Deploy (3.6) but it didn't help. What else can be checked? Thank you. 回答1: i faced

Using WebDeploy (MSDeploy) to deploy to a Microsoft Azure Website target doesn't work

。_饼干妹妹 提交于 2019-12-08 06:36:00
问题 I'm trying to deploy my web app via Visual Studio 2015's "Publish" functionality to an Azure website/app service staging slot and I receive the following errors: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4295,5): Warning : Retrying the sync because a socket error (10054) occurred. Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 1 of 10. Updating file (xxxxxxxxxxxxx__staging\bin\EntityFramework.dll). C:

How can resolve Untrusted certificates Error ?( TFS2013 Build and deploy to IIS )

ぃ、小莉子 提交于 2019-12-07 18:51:17
问题 I crate a build definition on tfs2013.when I queue my builddefinition I get an error about Untrusted certificates. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets (4270): Web deployment task failed. (Connected to the remote computer ("developertest") using the specified process ("Web Management Service"), but could not verify the server’s certificate. If you trust the server, connect again and allow untrusted certificates. Learn more at: http:/

How to specify default Application Pool in ASP.NET MVC Project?

浪子不回头ぞ 提交于 2019-12-07 15:43:07
问题 In my ASP.NET MVC project I have added a parameters.xml file that looks like: <?xml version="1.0" encoding="utf-8" ?> <parameters> <parameter name="Application Pool" description="Application Pool Name" defaultValue="PreferredPool"> <parameterEntry kind="DeploymentObjectAttribute" scope="appHostConfig" match="application/@applicationPool"/> </parameter> </parameters> Then I go ahead and build the deployment package: MSBuild.exe myproject.csproj /t:Package /p:PackageLocation="C:\packages

Auto Branching in svn using teamcity

随声附和 提交于 2019-12-07 15:39:46
问题 I wonder whether it is possible to do auto branching using Teamcity. As currently I am automatically publishing web applications using web deploy and the only thing left is branching as we usually take a branch in svn and then publish the next version. Can any one please advise if it is possible and how to do it. 回答1: Open TeamCity Version Control Settings for your release build. Set "VCS labeling mode" to "Successful only" and specify an appropriate labeling pattern. E.g. release-build-

using SqlCmd variables with dbDacFx provider of MsDeploy

空扰寡人 提交于 2019-12-07 12:20:48
问题 I am trying to use msdeploy using dbDacFx provider to deploy my dacpac file. This database project uses a variable named UserName to create logins and users etc. Value for this needs to be passed during deployment time. So i am doing something like ... msdeploy.exe -verb:Sync -Source:dbDacFx="c:\dev\pmwuiservices\trunk\Build\database\Database.dacpac"-dest:dbDacFx="Data Source=localhost;Integrated Security=True;Database=UIConfig", -setParam:Kind=SqlCommandVariable,scope=dbDacFx,match=UserName

Update database feature not working in Publish Web dialog in Visual Studio 2012

╄→尐↘猪︶ㄣ 提交于 2019-12-07 04:06:53
问题 I'm developing an ASP.NET Web Forms application under Visual Studio 2012. I'm using Web Deploy and Publish Web dialog for application deploy. I'm trying to deploy a database schema using the Update database feature. I entered a connection string pointing to remote SQL Server. If I click the "Test connection" button Visual Studio says test connection is succeeded. Then I go to Preview tab and click the Preview database link. And in the opened window I have the message Web deployment task

web deploy package not picking up parameters.xml when using latest csproj format

末鹿安然 提交于 2019-12-07 03:16:26
I have a project which is being updated to use the new .csproj format. We used to use the following msbuild arguments: msbuild Logging.sln /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="C:\Source\webdeploy" Which created a .zip web deploy package. In the top level of this folder was parameters.xml, which is a copy of a custom parameters.xml from the project being built. Since moving to the new .csproj format, the .zip is still being created, but the parameters.xml file inside the .zip is incorrect. I'm not sure where it comes from,

How to replace a web.config setting with the current date while using webdeploy?

与世无争的帅哥 提交于 2019-12-07 02:48:46
问题 I'm using a web.config transform to replace settings with the settings of the selected solution configuration. However, I would like to add a setting that stores the datetime of the publish process. The reason for this is to be able to show a "Last published on" for my customers. Using config transforms, is there a way to replace a setting with the current date? 回答1: I think you're going to need to use a customer MSBuild task to apply the change. My wife blogged about adding custom tasks to