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?
Loading

Maurice BrownPosted Nov 14, 2013, 1:00 AM
I have a book that gave these instructions which were not helpful at all. There were no ellipsis.
This link however was very helpful.
http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/walkthrough-on-creating-wcf-4-0-service-and-hosting-in-iis-7-5/
Sandeep Singh ShekhawatPosted Jun 15, 2013, 7:48 AM
I agree with your point for search with appropriate keyword and clearing my doubts for hosting and deploying.
Thanks,
Sandeep
LaxmikantPosted Jun 13, 2013, 10:44 AM
After that create a website in IIS and publish your website to the newly created IIS website.
check the below article for step by step hosting your wcf service in IIS
http://dotnetmentors.com/how-to-host-wcf-service-in-iis-7.aspx
Sam HobbsPosted Jun 3, 2013, 2:13 AM
Also note that there is a difference between hosting and deploying. It is one thing to develop a WCF Service so that it can be hosted in WCF but deploying (also called publishing) it to IIS is different. Perhaps it would have helped you if someone explained that difference.
It is very common that some people do not search as much as they could, but unfortunately it is becoming too common for people to just say to go search. When asking questions, I often am happy to just know what terms to search for, but it is unfortunately not so common to get answer such as that.
Sandeep Singh ShekhawatPosted May 29, 2013, 12:04 PM
Now my problem is solved by this link
http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/walkthrough-on-creating-wcf-4-0-service-and-hosting-in-iis-7-5/
Again thanks to all for given your precious time to me.
By your post I learned a lot of things about WCF but most interesting thing was that my answer was here
so C# Corner
Sandeep Singh ShekhawatPosted May 29, 2013, 11:28 AM
But if it will solve my issue.
Sandeep Singh ShekhawatPosted May 29, 2013, 6:35 AM
I will try this one and let you know if get some trouble.
Pankaj PandeyPosted May 29, 2013, 5:16 AM
http://www.wcftutorial.net/WCF-IIS-Hosting.aspx
Sandeep Singh ShekhawatPosted May 29, 2013, 3:23 AM
I will go throgh this link and follow these steps there after I will update thread (by New issue post / Accepted Answer).
Thanks for your valueable post.
Sandeep Singh ShekhawatPosted May 29, 2013, 3:17 AM
Its good link as metioned in your reply which explain that how can ready a WCF Service Application for IIS but I am looking one step ahed that How I can host WCF Service application on IIS?
Rekha SinghPosted May 29, 2013, 3:13 AM
http://imapcgeek.wordpress.com/2010/09/08/manually-deploying-a-wcf-service-to-iis/
Thanks
Rekha
Parveen SiwachPosted May 29, 2013, 2:17 AM
http://simpledotnetsolutions.wordpress.com/2011/11/17/hosting-a-simple-wcf-service-on-iis-a-beginner-and-broad-overview/
Sandeep Singh ShekhawatPosted May 29, 2013, 1:29 AM
I have asked google Baba before post this thread on the fourm but not able to host on my development machine. Can you please give a suggestion/way/thought instead of common sense answer.
Ravikumar GPosted May 29, 2013, 1:03 AM