Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy a WCF web service in IIS 8.0 using Visual Studio 2012?

I am stuck and can not figure out how to deploy a wcf web service in iis8.0, can any body please help me out about the detailed process of deploying a wcf web service in iis?

Are there any setting that need to be set?

What have tried is.......

Then i created a new website in iis by giving a site name and physical path (C:\inetpub\wwwroot\NEWFOLDER). Then i opened the VS solution in administrative mode published it. In the dialog box opened, Created a new web application under the IIS Sites and published it. It was successful and could be seen in output window as well.

when click on the link of the line Connecting to http://localhost:[port#]/WebApplicationName it shows the directory structure. then clicked on .svc file it gives an error saying "The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map

like image 973
Kasun Wanniarachchi Avatar asked Jan 23 '13 04:01

Kasun Wanniarachchi


1 Answers

WCF Servive handlers are not installed on you server.

In Server Manager

  • Expand ".Net 3.5" or ".Net 4.5", depending on Os/Framework version.

  • Under "WCF Services", check the box for "HTTP-Activation" (for http binding) or "Non-http" for others bindings (tcp, named pipes, etc).

  • Click "Install" Button.

That's all

like image 66
Cybermaxs Avatar answered Oct 07 '22 00:10

Cybermaxs