Sandeep Singh Shekhawat

Sandeep Singh Shekhawat

  • NA
  • 19.9k
  • 30.3m

How can host WCF Service Application on IIS?

May 29 2013 12:09 AM
I have a WCF Service Application and want to host on IIS.

WCF Service Application has a .svc file like

<%@ ServiceHost Language="C#" Debug="true" Service="WcfService1.Service1" %>

I created a new website on IIS and physical path map to WCF Application created web folder and give host name like "demo" and port number:80

Now I browse website from iis

http://demo/

and did not get .svc file in url or page.

Note:
1. WCF Service Application has one .svc file.
2. WCF Service Application doesn't containe .svc.cs file but it has .cs file to implement service contrat.So I need to create a svc.cs file instead of .cs file to imlement service contract.
3.WCF Service Application has another .cs file for service contract.

How can I host WCF Service application on IIS?

Answers (14)