msdeploy

How to make Web Deploy (msdeploy) deploy in a different folder?

泪湿孤枕 提交于 2019-12-25 01:49:40
问题 I'm trying to make a simple proof-of-concept Web Deployment scenario. My goal is to: Take a folder with a few files and package them in a .zip file Unpackage the .zip file in a different folder Run a .exe from the unpacked folder (also letting the .exe know where it was unpacked). I'm doing this on a virtual machine without an IIS installed, otherwise it wants to read IIS config for some reason, even if it doesn't need to do anything with it (and fails because it lacks administrative rights).

dropDestinationDatabase option on Web Deployment Commandline Tool

时光总嘲笑我的痴心妄想 提交于 2019-12-24 14:23:01
问题 Ho, I'm trying to get msdeploy commandline tool to copy databases from dev to test. It seems to work except that I want to drop the databases on test and then recreate them -verb:sync -source:dbFullSql="Data Source=DEVSERVER;Initial Catalog=XXX_Application;Integrated Security=true",dropDestinationDatabase=true -dest:dbFullSql="Data Source=111.111.111.111;Initial Catalog=XXX_Application;uid=admin;pwd=xxx;Integrated Security=false",dropDestinationDatabase=true This is my command line. Why is it

Msdeploy replace attribute

五迷三道 提交于 2019-12-23 18:11:57
问题 I am trying to msdeploy to restore the site on destination computer from the package i created on source IIS 7 site. The destination server IIS is also IIS7. The destination server however does not have the drive D: as the physical drive. the D: is associated to a CD Row drive. I use the replace attribute while using msdeploy but the rule does not work. Below is my command msdeploy -verb:sync -source:package=d:\site.zip -dest:apphostconfig="Default Web Site" -replace:objectName="metaProperty"

MsDeploy Virtual Directory gets converted to Virtual Application on deploy

你离开我真会死。 提交于 2019-12-23 17:23:48
问题 For my CMS to work properly it needs to be deployed to a virtual directory underneath the www root so it can access (via reflection) the website to manage (note: CMS = N2CMS). When using Visual Studio 'Publish To Web' all is fine. But when I generate the package via msbuild commandline and publish that version my virtual directory is converted to a virtual application. I configured my remote server to have a virtual directory '/n2' underneath my IIS web application ('exampleapp') and

MSDeploy/WebDeploy - Deploy Composite Database Project via DacPac

喜夏-厌秋 提交于 2019-12-23 11:55:05
问题 We have a database project with views which join to tables in another database. The other database is in a different solution. This failed to build until we added a reference to a DacPac from the other database. I believe these views are considered “Composite Database Objects” because they reference objects not included as scripts in the database but rather referenced in the DacPac. We can successfully deploy this project from the VS to the target database. Now we are trying to automate the

VS2012 Error when creating publish package: Exception in Executing Publishing Access to path is denied

僤鯓⒐⒋嵵緔 提交于 2019-12-23 08:47:04
问题 I am trying to publish an application with VS2012 and when i try and make the package i get an error that access to the path is denied. I have checked and my user has full control and verified the path. VS is trying to access .pubmxl file that is there. I have also tried running VS2012 as administrator. 回答1: I had this same issue (VS2012: Access to path is denied when executing publish) and found a way to allow Visual Studio access to the file. If you open the pubxml file in Visual Studio,

MSDeploy automatic encryption of connection strings, key not found in dictionary

杀马特。学长 韩版系。学妹 提交于 2019-12-23 07:33:15
问题 Since Web Deploy 3.5 automatic encryption of connection strings is supported using the flag: –EnableRule:EncryptWebConfig . However, upon running it with: "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:package='C:\[...]\MyApp.WebDeployPackage.zip' -dest:auto,includeAcls="False" -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"C:\[...]\MyApp.SetParameters.xml" -EnableRule:EncryptWebConfig -verbose I get

How to deploy an ASP.NET MVC application on build using MSBuild in Visual Studio 2015?

梦想的初衷 提交于 2019-12-23 05:42:25
问题 I want the application to be deployed to a local folder when I build the project. This should produce a zip file that I can use to import in IIS. How can I achieve this? 回答1: Command line msbuild yoursolutionfile.sln /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:PackageLocation="yourpath\yourfilename.zip" DeployOnBuild tells msbuild to deploy (to package location) WebPublishMethod Creates a deployment package. You can choose other options for web publish

Powershell 2.0 Hang When Run From MsDeploy pre- post- ops using c/

与世无争的帅哥 提交于 2019-12-23 02:06:12
问题 I am trying to invoke powershell during the preSync call in a MSDeploy command, but powershell does not exit the process after it has been called. The command (from command line): "tools/MSDeploy/msdeploy.exe" -verb:sync -preSync:runCommand="powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command C:/MyInstallPath/deploy.ps1 Set-WebAppOffline Uninstall-Service ",waitInterval=60000 -usechecksum -source:dirPath="build/for-deployment" -dest:wmsvc=BLUEPRINT-X86

MSDeploy fails to deploy manually zipped package

一曲冷凌霜 提交于 2019-12-22 05:53:18
问题 Earlier I was building and deploying web project using msbuild.exe Now I want to modify some files before deploying, so I make a .zip package using msbuild, then unzip it, modify some files and then zip it again and try to deploy using msdeploy. The problem is, that it deploys empty folder . When I try to deploy unmodified .zip package - it works fine. After long hours digging, I figured out, that msdeploy does not support packages, which were zipped using other than built in windows zip