ierrorhandler
WCF - IErrorHandler vs Authentication
I\'m writing a WCF service with some authentication and a custom error handler. However, I\'m coming up against this problem: my implementation of IErrorHandler is not getting hit when the authenticat[详细]
2023-03-26 10:11 分类:问答Calling Abort on faulted WCF channel causes server side error to be logged
When a FaultException is returned开发者_JAVA技巧 from my WCF service, I need to Abort the channel instead of Closing it. Both my client and service work fine with this approach but after implementing[详细]
2023-01-30 01:40 分类:问答WCF IErrorHandler.ProvideFault() behavior
My service methods are marked with PrincipalPermissionAttribute and i have a custom IErrorHandler implementation attached to the service. When an incoming request has no permissions to execute the met[详细]
2023-01-27 10:02 分类:问答MSMQ thru WCF is swallowing badly formatted messages, no errors, no warnings
I have a service that responds to messages on an MSMQ, using WCF. When the message is well formatted, it works as normal, and we\'re happy. When the message is intended for a different service, and th[详细]
2023-01-18 21:05 分类:问答Custom JSON IErrorHandler in WCF returning StatusCode 200/504 when should return 400
I have a WCF service that among other bindings also uses WebHttpBinding for JSON inputs/results. I made a custom IErrorHandler implementation in order to be able to set the StatusCode to 400 when som[详细]
2023-01-12 11:11 分类:问答Implementing IErrorHandler using class level Attributes in WCF
Had no luck with getting it working via config files, so decided to attempt to go the more robust route of doign it via class level attributes. If I can get this working it is clearly a great way of w[详细]
2023-01-05 22:43 分类:问答IErrorHandler doesn't seem to be handling my errors in WCF .. any ideas?
Have been reading around on IErrorHandler and want to go the config route. so, I have read the following in an attempt to implement it.[详细]
2023-01-03 04:26 分类:问答Implement 'Ping' functionality using Message Inspector causes WCF runtime to throw NullReferenceException
I\'m using WCF to implement a web service. This web service requires a \'ping\' feature as a health monitor for each service. This functionality has been implemented using IDispatchMessageInspector an[详细]
2022-12-12 18:53 分类:问答How can I inject an object into an WCF IErrorHandler implementation with Castle Windsor?
I\'m developing a set of services using WCF. The application is doing dependency injection with Castle Windsor. I\'ve added an IErrorHandler implementation that is added to services via an attribute.[详细]
2022-12-08 22:08 分类:问答