Hi
I'm still pretty new to WCF, so maybe this is a stupid question.
I have a WCF service and was wondering if it were possible to reference different DLL's with service contracts in them and make them accessible through the same service?
So I would have one dll with something like this in it:
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
public partial class MyTestClass : IMyTestClass
{
public string _TestSalesOptions()
{
return "SalesOpstion says Halo!";
}
}
[ServiceContract]
public interface IMyTestClass
{
[OperationContract]
string _TestSalesOptions();
}
Now... would I be able to reference this dll in my main service and add a endpoint??
I've spend the better part of the morning googling and I haven't found any results to what I'm trying to do. Maybe it can't be done? Maybe we should rather create separate small services?
Loading

Praneeth KumarRank #4,422 · 344 reputationPosted Jun 17, 2011, 3:55 AM EDT
NeCroFire82 reputationPosted Jun 17, 2011, 4:45 AM EDT
Praneeth KumarRank #4,422 · 344 reputationPosted Jun 17, 2011, 5:11 AM EDT
Keynote is the projects namespace should be mentioned properly.
Even in the .svc file you need to mention proper namespace
<%@ ServiceHost Language="C#" Debug="true" Service="
NeCroFire82 reputationPosted Jun 17, 2011, 5:52 AM EDT
Praneeth KumarRank #4,422 · 344 reputationPosted Jun 17, 2011, 5:59 AM EDT
NeCroFire82 reputationPosted Jun 20, 2011, 4:53 AM EDT
Praneeth KumarRank #4,422 · 344 reputationPosted Jun 21, 2011, 2:31 AM EDT