HowTo: Setup of WebDeploy / MSDeploy

 

imageA long time ago I´ve already spoken about MSDeploy. It was about how to integrate MSDeploy into your Building process. But I haven´t talked a lot about server configuration. That´s what I´m going to change today because sometimes MSDeploy or WebDeploy is used to be a little bit bitchy ;-)

So how to configurate MSDeploy/WebDeploy?

Basics

I assume that you have IIS7 or better. Here it´s not difficult to install the Web Deployment Tool with the Web Platform installer – it´s not integrated default (that means not at the moment).

Download: Web Deploy Download

Windows services

There are two important windows services you are used to have:

- Web Deployment Agent Services

- Web Management Services

image

You can also use CMD:

- Net start msdepsvc

- Net start wmsvc

Configure IIS: Management services

One of the most important points for the configuration you will find in the “Feature View” of the “Management Services”:

image

Here we need to be sure that “Enable Remote Connection” is crossed:

image

You need to stop the service to change the configurations but don´t forget to restart after you finished Zwinkerndes Smiley

There is another configuration you need to change: Management Service Delegation

image

Under “edit Feature Settings” you need to permit all administrators – that means: mark the first Checkbox!

image

Activate the Firewall

MSDeploy uses the TCP Port “8172″ but you are able to change this at the “Management Service” point:

image

Either you add the Port manual into the Fir

ewallsettings or you use this CMD call:

Netsh firewall add portopening TPC 8172 WdeployAgent

Create a website

As far as I know there must be a website already been integrated (look at “Sites”) because Webdeploy doesn´t do this by itself – but maybe I´m wrong with that. In fact for me it just worked if I´m integrated the site before.

In my example the site is called “test” and I´ve changed the AppPool to .NET 4.0 (otherwise you are going to get an error message if the WebApp asks for it)

Deploy!

imageThat´s what the Visual Studio Publish Screen could look like. At Service URL the IP address is enough!

At “Site/application” I´ve done some Tests with that it will be deployed directly on the web site. But it´s also possible to create some under folders or with a click on “Mark as IIS app” it´s going to create some Web Applications beneath the Web site (automatically).

 

 

For Web hoster

If you plan to do this professional I recommend this link to you. This is about how to give specific users specific rights.

Links

AS I said before sometimes Web Deploy or MS Deploy is used to be a bit bitchy. More about his subject you will find on several sites in the web.

For me was the article of ScottGu and Troubleshooting a big help.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

About the author

Written by Code Inside Team

Learn more about our team.

One Response

Comment on this post

Recent Posts

  • Windows Phone Fonts & what if Visual Studio lies

    Today I was confronted with a little Problem: my Windows Phone App refused to show me the Font I choose – also other thinks didn’t work. Although the Visual Studio Designer did show the Fonts: Unfortunately there isn’t much left in the Emulator: Reason for this: Windows Phone doesn’t include all the typos Windows does ...

  • Json-Online-Tools: Viewer & Json2Csharp generator

      Wherever APIs are mentioned the JSON format I not far away. Since I’m using two tools regularly I would like to introduce you to them. JSON Viewer If you only see the JSON-Text you are usually not able to see the structure. With the help of JSON Viewer you can have an easy overview: ...

  • Windows Phone SDK & „System“-Icons

      Although the Metro Design focuses a lot on Typography Icons are still quite important. If you install Windows Phone SDK you will receive 36 Icons. You can find them here: C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Icons Unfortunately many Icons you might know from the common applications are not integrated. Pedro Lamas extracted 99 additional Icons ...

  • image1830-570x194.png
    How can I figure out if my ADFS 2.0 works?

      I was working with ADFS 2.0 (“Active Directory Federation Services”) for a while when this simple question crossed my mind: How can I figure out if the connection between ADFS and AD “works”? Here is a simple test… What is ADFS? If you need some “position of trusts” beneath the AD-boarders you choose an ...

  • Subdomain vs. Subdirectory

      Better blog.mydomain.com or mydomain.com/blog? Good question! If got asked this question again via Twitter on the weekend so therefore I decide to share my experiences:   Choose a subdomain, if…. - You plan to offer “different services” which are “logical separated” on one domain - You are able to influence the subdomains without much ...

Support us