views:

87

answers:

1
<component id="errorhandler1"
           service="System.ServiceModel.Description.IServiceBehavior, System.ServiceModel"
           type="Nbs.CoreServices.GenericErrorHandler.ErrorHandler, Nbs.CoreServices.GenericErrorHandler" />

I am trying to inject a errorhandler component using Castle with WCF. I get this error wherein I get the error , that service is unable to load System.ServiceModel?

A: 

Four possible reasons:

  • You do not have a reference to system.serviceModel.dll
  • Framework 3.5 (or 3.0) is not installed
  • Your project is marked as Framework 2.0
  • You are using Visual Studio 2005
Shiraz Bhaiji
I have checked all of teh above and its 3.5 version.I am using VS 2008.System.ServiceModel.dll is in the GAC and even if I put a reference it fails but when I say Copy local = true it seems to work...
chugh97
Sounds like you have several versions of System.ServiceModel.dll, try reinstalling Framework 3.5 SP1.
Shiraz Bhaiji
I agree this is most certainly issue with your code, that has nothing to do with the 3rd party library
Krzysztof Koźmic