WCF Service Library Reference in a Web Form (asp.net)
Posted
by Abu Hamzah
on Stack Overflow
See other posts from Stack Overflow
or by Abu Hamzah
Published on 2010-05-12T17:38:52Z
Indexed on
2010/05/12
17:44 UTC
Read the original article
Hit count: 340
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?
© Stack Overflow or respective owner