WCF - How to deploy to IIS

No need to manually copy files.

From the Visual Studio Build menu, select Publish.

After that, you need to convert the target directory to an IIS application. See below.

[build-publish-1.gif]
[build-publish-2.gif]
[build-publish-3.gif]

How to convert the publish directory to an IIS application:

1 Open IIS Manager, right click on the directory to which you deployed your service, and select Convert to Application. Accept the defaults, and click Okay.

[convert-to-application.gif]
[add-application.gif]

That's it. Try navigating to the service URL.

E.g.

http://zuga-dev.net/wcf/service1.svc
You should see something like:

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath