Home > Uncategorized > How to deploy a WCF web service project onto IIS6/7

How to deploy a WCF web service project onto IIS6/7

clip_image002

In your webservice project, you have PrecompiledWeb folder, this folder contain the web service project in compiled form. Copy the content of the PrecompiledWeb, which is the CustomXmlService folder in this case to c:\inetpub\wwwroot

clip_image004

Now the folder is a website in the web server (but without the ability to run .NET code) so go to your IIS manager console to make this website to a web application. In the console you will see that you newly copied folder does not have a globe icon.

clip_image006

You can see the website in your Default Web Site, in IIS7 right click and select Convert to Application.

clip_image008

Still inside IIS7, a new window will pops up, click OK to accept the settings.

clip_image010

For IIS6 right click to open up the property page of the website

image

A new window will pops up, showing the default Directory tab

image

What you need to do is to click on the Create button on the lower half of the window

image

Click OK if you are not changing the application pool or execute permissions. Leave the permission at Scripts only.

To test out the web service, open it inside browser and the service description will come out.

clip_image012

In Visual Studio client project, delete your project Service Reference and add a new one pointing to this deployed web site.

clip_image014

Categories: Uncategorized Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.