<system.serviceModel>....
</system.serviceModel>
... it still wouldn't find my service and load it (I'm using Ninject as a dependency injection container for my WCF services). They key to getting the shared services to be found and loaded properly was to create a .svc file in each of the services where the WCF services were shared, and it looked something like this in each case:
<%@ ServiceHost Language="C#" Debug="false" Service="MyWcfSharedServices.MySharedWebService" Factory="Ninject.Extensions.Wcf.NinjectServiceHostFactory" %>
After adding the .svc file and using the path to it in the system.serviceModel configuration in the configuration file, everything worked perfectly.
No comments:
Post a Comment