Miscellaneous Debris

Avner Kashtan's Frustrations and Exultations

Browse by Tags

All Tags » WCF » WinFX: January CTP (RSS)
OperationContext is ThreadStatic
WCF Services tend to be big, heavy duty things. When I write a service I often want it to do a lot of work for a lot of clients, and it should do it efficiently. This usually means that I will use multithreaded code to get things done concurrently. Whether...

Posted Thursday, May 18, 2006 5:29 PM by AvnerK | 6 comment(s)

Deperplexing WCF errors pt. 3 - Interfaces and KnownTypes
Another error message that stumped me today (after I had removed the IsOneWay parameter and actually got to see it) was the following exception: System.ServiceModel.CommunicationException The server did not provide a meaningful reply; this might be caused...

Posted Tuesday, May 16, 2006 4:40 PM by AvnerK | with no comments

Deperplexing WCF errors pt. 1 - CommunicationObjectAbortedException for security mismatch
As a follow-up to this post : another reason why we get CommunicationObjectAbortedExceptions is because our client channel definition does not send any credentials (using a binding that has the SecurityMode set to None) while the service is still set...

Posted Monday, May 15, 2006 1:03 PM by AvnerK | with no comments

Indigo Errors Perplexing
I was writing a very simple WCF service. Nothing fancy - just returning an array of structs via TCP, just like 3 others already implemented. Started testing, stepped through the server code, returned the value from the service interface, then WHAM - a...

Posted Monday, May 08, 2006 3:06 PM by AvnerK | 2 comment(s)

Adding custom headers to every WCF call - a solution
At last, a solution presented itself. While I must admit that at first I was very skeptical of the extensibilty model for WCF which seemed far too involved and complicated, but after implementing a simple extension I must say it's simple and quite intuitive...

Posted Wednesday, April 26, 2006 11:20 AM by AvnerK | 6 comment(s)

How do I add a custom header to every WCF message?
One thing I still haven't managed to do is create my proxy in such a way that a custom header is added to every call that is made through that proxy. Currently, this is done by instantiating a new OperationContext around each call through the proxy. This...

Posted Tuesday, April 25, 2006 3:10 PM by AvnerK | 9 comment(s)

More Posts