endpointbehavior

WCF cannot create custom endpointbehavior only in PROD environment

拥有回忆 提交于 2019-12-12 03:23:11
问题 I have a WCF rest web service. Everything works fine on my development environment (#develop using IIS express), but i get the following error on my production evironment: Server Error in '/Services' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your

Using a Custom Endpoint Behavior with WCF and Autofac

拟墨画扇 提交于 2019-12-06 02:31:06
问题 I'm trying to implement a UoW like shown here: http://blog.iannelson.systems/wcf-global-exception-handling/ But I can't for the life of me figure out how to wire it up with Autofac. I have absolutely no idea where to start. I've got WCF working fine with Autofac from using http://autofac.readthedocs.org/en/latest/integration/wcf.html But to inject or add the IEndpointBehavior? No idea... If there's a better way to implement a UoW I would like to hear. Edit: For now I've just done: builder

Different Service behaviors per endpoint

有些话、适合烂在心里 提交于 2019-12-06 00:11:05
问题 The situation We are implementing different sort of security on some WCF service. ClientCertificate, UserName & Password and Anonymous. We have 2 ServiceBehaviorConfigurations, one for httpBinding and one for wsHttpBinding. ( We have custom authorization policies for claim based security ) As a requirement we need different endpoints for each service. 3 endpoints with httpBinding and 1 with wsHttpBinding. Example for one service: basicHttpBinding : Anonymous basicHttpBinding :