Miscellaneous Debris

Avner Kashtan's Frustrations and Exultations

Browse by Tags

All Tags » 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...
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...
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...
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...
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...
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...
Adding custom headers to a WCF message - Jan CTP
Guy Burstein, again, writes about adding custom headers to a call made by a WCF proxy. This is all very nice and well, but his code only works with the Feb. CTP of WCF, while I'm still using January here. The differences seemed subtle at first - his instantiation...
Creating metadata from WCF executables
So I've started messing around with WinFX and WCF. It certainly feels like it needs more work, especially on the dev-tool end of things. I was trying to run SvcUtil to generate metadata and proxy from a console application and ran into this error message...
More Posts