WCF Service Library Reference in a Web Form (asp.net)
- by Abu Hamzah
i am not sure if this is the correct way of doing but i read that you not suppose to have a WCF Service Library reference in your web form project rather you add endpoints to your web.config, is that true?
here is what i have done:
1) create a WCF service library project
2) create a simple service called "MyService.svc"
WebForm:
1) Create a web project
2) create a WCF Service and in it i have this code
<%@ ServiceHost Language="C#"
Service="WCFJQuery.ContactBLL.Implementation.ContactUs"
Factory="System.ServiceModel.Activation.WebScriptServiceHostFactory" %>
3) right click on the web proejct and "Add Reference" and add teh MyService.dll reference from WCF service library project.
is this something how you suppose to do?