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


Ravikumar G178 reputationPosted May 28, 2013, 9:03 PM EDT
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted May 28, 2013, 9:29 PM EDT
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.
Parveen SiwachRank #6,758 · 257 reputationPosted May 28, 2013, 10:17 PM EDT
http://simpledotnetsolutions.wordpress.com/2011/11/17/hosting-a-simple-wcf-service-on-iis-a-beginner-and-broad-overview/
Rekha SinghRank #1,571 · 1K reputationPosted May 28, 2013, 11:13 PM EDT
http://imapcgeek.wordpress.com/2010/09/08/manually-deploying-a-wcf-service-to-iis/
Thanks
Rekha
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted May 28, 2013, 11:17 PM EDT
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?
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted May 28, 2013, 11:23 PM EDT
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.
Pankaj PandeyRank #642 · 3.7K reputationPosted May 29, 2013, 1:16 AM EDT
http://www.wcftutorial.net/WCF-IIS-Hosting.aspx
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted May 29, 2013, 2:35 AM EDT
I will try this one and let you know if get some trouble.
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted May 29, 2013, 7:28 AM EDT
But if it will solve my issue.
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted May 29, 2013, 8:04 AM EDT
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
Sam HobbsRank #107 · 20.5K reputationPosted Jun 2, 2013, 10:13 PM EDT
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.
LaxmikantRank #5,709 · 289 reputationPosted Jun 13, 2013, 6:44 AM EDT
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
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Jun 15, 2013, 3:48 AM EDT
I agree with your point for search with appropriate keyword and clearing my doubts for hosting and deploying.
Thanks,
Sandeep
Maurice Brown2 reputationPosted Nov 13, 2013, 8:00 PM EST
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/