webdeploy

Visual Studio 2015 exception SqlScriptPreprocessSqlVariables when running web publish wizard with update database

六眼飞鱼酱① 提交于 2020-01-02 07:46:31
问题 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 publish... in the publish wizard. Example of web Publish wizard with included Update script. I will get the same error building a web deployment package or web deploy . Original post: The "SqlScriptPreprocessSqlVariables" task failed unexpectedly. This happens when I use publishing wizard or MSBuild

Could not load file or assembly 'Microsoft.Web.Deployment, Version=9.0.0.0

心不动则不痛 提交于 2020-01-01 08:39:09
问题 I have VS 2013 Ultimate. My remote server is IIS 7.5 and enabled for remote deployment. I have installed Web Deploy Tool 2.1 through Web Platform Installer 4.6 and it installed successfully. When I try to validate connection from to remote server from my local machine on Publish tool, I get following error: "Could not load file or assembly 'Microsoft.Web.Deployment, Version=9.0.0.0, Culture=Neutral, PubliKeyToken=31bf3856ad364e35 or one of its dependencies. The system can not find the file

MSDeploy setParameter not working

£可爱£侵袭症+ 提交于 2020-01-01 08:36:05
问题 We are trying to integrate a 'build once, deploy anywhere' model in our build-deploy system. MSDeploy works wonders for this, cutting down build time dramatically with CRC checksum comparisons and ( for the most part ) it works just as well when using parameterisation to change applications web.configs depending on the environment we deploy to. I have the majority of these parameters nailed down, but a few elements and attributes never seem to change, no matter how many different ways I call

MSBuild: How to build web deploy package for Web Deployment Projects (VS2010)?

混江龙づ霸主 提交于 2020-01-01 04:40:28
问题 I migrated a Web Site project (with Web Deployment project) from VS2008 to VS2010. Now I can make "Build Deployment Package" for Web Deployment Project in VS2010 and it works great! But I can't find a way how to do the same via MSBuild. 回答1: I answer on my one question. So after a lot of googling and 2 days of investigation it finally works. Brief how to: I created Configuration = QA (based on Debug configuration) for Solution via Configuration Manager. Important: I removed 'Platform'

Web Deploy - Using Relative Paths for local file system deployment

馋奶兔 提交于 2019-12-31 11:43:47
问题 I am wanting to use Web Deploy to run a custom deployment setup. As I am wanting to have this work fine when running on many different environments (team members local machines, 4 different builds servers) I want to deploy to a local path that is relative. What I am wanting to do is: Deploy to a local relative path Have the after build step do magical things... However when i enter the local file path to deploy to as: "..\Deploy_Production" web deploy complains with this: 2>Connecting to ..

Publish Web Deploy using VS Code

。_饼干妹妹 提交于 2019-12-31 09:19:56
问题 In Visual Studio, I use the "publish web" feature to do some web.config transforms, and publish a WebAPI project to our server. The publishing is done using Web Deploy. Now that I'm using Visual Studio Code, I've lost that tooling. But, I'd like to continue publishing the project using Web Deploy. Is there some way to write a VSCode task that will publish my project? Visual Studio Publish uses a [target].pubxml file. I have "staging.pubxml" and "production.xml". These look like MSBuild files.

How to Web Deploy a web application targeting Entity Framework 4.2 June 2011 CTP

感情迁移 提交于 2019-12-30 03:04:08
问题 I'm using Entity Framework 4.2 June 2011 CTP in a small web application (ASP.NET MVC 3) because it supports enums. I tried to deploy it using web deploy and I get the following error : The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v4.0'. This application requires 'v4.2'. How to create an application pool running on .NET 4.2 ? Edit: The web application does work with a 4.0 app pool so the real question is how to disable the app pool runtime

401 Unauthorized error with WebDeploy using non-administrator user

拈花ヽ惹草 提交于 2019-12-30 03:00:06
问题 <TLDR> Is it at all possible to use ms web deploy to deploy a web application to a remote host from the command line with a non-administrator user? </TLDR> I have followed every point in Microsoft's guide for Installing and Configuring Web Deploy. My goal is to be able to do a remote web deploy with an IIS user/non-administrator user. After doing all the steps as described under Install and configure web deploy for non-administrator deployments , I get the following log messages (indicating

autostart website after web deploy

血红的双手。 提交于 2019-12-25 08:13:12
问题 I have a IIS website with multiple application connected to the same app pool and I deploy regularly some of those website through web deploy with the msdeploy tool. One of this app is set to autostart with the serviceAutoStartEnabled="true" and a matching serviceAutoStartProvider . It works well when I restart the whole app pool but the autostart is not triggered when I web deploy the website Is there any way to tell IIS to "restart" fully the website after the deploy and not wait for the

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).