How can I get TFS2010 to run MSDEPLOY for me through MSBUILD?

IIS7 + related answer …. Ok – here’s what I ended up doing. More or less, following the post by Simon Weaver in this thread/question. But when it comes to the MSBuild settings .. most people here are using following setting: /p:MSDeployPublishMethod=RemoteAgent which is NOT RIGHT for IIS7. Using this setting means TFS tries to … Read more

Web deployment task failed. Could not connect…server did not respond

I had the same problem with Web Deploy 3.5 when I installed it with “Web Platform Installer 5.0” When I tried to publish from Visual Studio I got this error: ————————— Microsoft Visual Studio ————————— Could not connect to the remote computer (“10.0.3.102”) using the specified process (“Web Management Service”) because the server did not … Read more

How to get Visual Studio ‘Publish’ functionality to include files from post build event?

I answered a similar but different question at How do you include additional files using VS2010 web deployment packages?. In your scenario you are using post build event, I would recommend dropping the post build event and implement your actions using your own MSBuild targets instead of post build event. Below you’ll find the text … Read more

Using MSBuild.exe to “Publish” a ASP.NET MVC 4 project with the cmd line

In VS 2012 (as well as the publish updates available in the Azure SDK for VS 2010) we have simplified command line publishing for web projects. We have done that by using Publish Profiles. In VS for a web project you can create a publish profile using the publish dialog. When you create that profile … Read more

MsDeploy is returning 403 forbidden

If you go into IIS, Click on the server node in the “Connections” list, Double click “Management Service” then you are taken to a screen which has an “Enable remote connections” check box. This checkbox (and the rest of the sreen) maybe greyed out because the service is running. Just click the “Stop” link in … Read more

How do you include additional files using VS2010 web deployment packages?

Great question. I just posted a very detailed blog entry about this at Web Deployment Tool (MSDeploy) : Build Package including extra files or excluding specific files. Here is the synopsis. After including files, I show how to exclude files as well. Including Extra Files Including extra files into the package is a bit harder … Read more

How to Publish Web with msbuild?

I got it mostly working without a custom msbuild script. Here are the relevant TeamCity build configuration settings: Artifact paths: %system.teamcity.build.workingDir%\MyProject\obj\Debug\Package\PackageTmp Type of runner: MSBuild (Runner for MSBuild files) Build file path: MyProject\MyProject.csproj Working directory: same as checkout directory MSBuild version: Microsoft .NET Framework 4.0 MSBuild ToolsVersion: 4.0 Run platform: x86 Targets: Package Command line … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)