Silverlight, Faults, and HTTP Status Codes

So plenty has been written about the mismatch in between the Silverlight browser plug-in and WCF messaging with fault use cases over HTTP. For those of you that didn’t know about this then here’s your chance to catchup: According to the documentation, SOAP faults are not supported in the WCF client implementation for Silverlight (even…

0

Using reflection to determine if an event is static

So if you happen to have an EventInfo class and need to determine if the event is static or instance, it isn’t actually immeidately clear if this is supported. Most of the MemberInfo basic types expose a property named IsStatic that indicates if this member is static or not. If you’ve ever worked with the…

0

Interested in POCO Entity Framework 4?

Editorial note: EF 4.1 was released as part of the .Net 4 Platform Update 1 release. You should use the information at http://blogs.msdn.com/b/adonet/archive/2011/04/11/ef-4-1-released.aspx for training now. For those of you interested in POCO In EF4, here’s a list of links that you should read to grok: http://blogs.msdn.com/b/adonet/archive/2009/05/21/poco-in-the-entity-framework-part-1-the-experience.aspx http://blogs.msdn.com/b/adonet/archive/2009/05/28/poco-in-the-entity-framework-part-2-complex-types-deferred-loading-and-explicit-loading.aspx http://blogs.msdn.com/b/adonet/archive/2009/06/10/poco-in-the-entity-framework-part-3-change-tracking-with-poco.aspx http://blogs.msdn.com/b/adonet/archive/2009/06/16/using-repository-and-unit-of-work-patterns-with-entity-framework-4-0.aspx http://blogs.msdn.com/b/adonet/archive/2009/06/22/feature-ctp-walkthrough-code-only-for-the-entity-framework.aspx http://blogs.msdn.com/b/efdesign/archive/2009/08/03/code-only-enhancements.aspx http://blogs.msdn.com/b/efdesign/archive/2009/10/12/code-only-further-enhancements.aspx And if you are…

0

Making exception messages meaningful

Now that’s a great exception message. I think we all can take a clue from the Castle team when it comes to making exceptions meaningful. Instead of next time effectively saying “something went wrong” with our exceptions, really spell out exactly why it went bad and if possible, how to correct it.   Big ups to…

0

Modifying ASP.Net Providers at Runtime

How to add providers at runtime programmatically So if you are like me, you are a fan of not reinventing the wheel. This is especially true of components like Membership, Roles, Authentication, Personalization and whatnot. While I take some issue with the choice of API and can think of many improvements that should be made,…

2

Unit Testing Repositories, a rebuttal. Or "How to use proper decoupling to unit test the repository pattern"

For primers, you need to read this post first: http://buffered.io/2008/07/29/unit-tests-boldly-crossing-boundaries-and-gently-breaking-rules/ So the other day I received an email from a group that I am assisting in understanding TDD, Test Concepts, and Separation of Concerns, and they asked, “Is this relevant”? Well here’s the reply to them. Relevant: Yes and no.There’s some good conversation going on…

0

Indispensable Visual Studio Gallery Extensions

A simple list of items no developer should be without. VS 2010 Productivity Toolshttp://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef OData Visualizerhttp://visualstudiogallery.msdn.microsoft.com/en-us/f4ac856a-796e-4d78-9a3d-0120d8137722 VS2010 Code Maphttp://visualstudiogallery.msdn.microsoft.com/en-us/1c54d1bd-d898-4705-903f-fa4a319b50f2 RegEx Editorhttp://visualstudiogallery.msdn.microsoft.com/en-us/55c24bf1-2636-4f94-831d-28db8505ce00 TFS Power Toolshttp://visualstudiogallery.msdn.microsoft.com/en-us/3e8c9b68-6e39-4577-b9b7-78489b5cb1da Power Commands for VS2010http://visualstudiogallery.msdn.microsoft.com/en-us/e5f41ad9-4edc-4912-bca3-91147db95b99 Visualization and Modeling Feature Packhttp://msdn.microsoft.com/library/dd460723.aspx Application Architecture Guide Layer Diagramshttp://visualstudiogallery.msdn.microsoft.com/en-us/237f823c-45b4-4f1f-b9e2-607fe66eaae7 Architecture Layer Patternshttp://visualstudiogallery.msdn.microsoft.com/en-us/9c8051f8-e8f7-45b1-8d04-dad6afc697d2 Move to Regionhttp://visualstudiogallery.msdn.microsoft.com/en-us/993418d7-40ef-46fd-8f2d-0cf57cc628fd ReSharperhttp://visualstudiogallery.msdn.microsoft.com/en-us/EA4AC039-1B5C-4D11-804E-9BEDE2E63ECF PowerGUIhttp://www.powergui.orghttp://powerguivsx.codeplex.com/ WIXhttp://visualstudiogallery.msdn.microsoft.com/en-us/5f43f268-7752-48c7-90e8-ae5b6f136b3f Code Contracts Editorhttp://visualstudiogallery.msdn.microsoft.com/en-us/85f0aa38-a8a8-4811-8b86-e7f0b8d8c71b?SRC=Featured

0

Yet Another WCF Service Instance Provider

So here’s a lightweight handy WCF service instance provider that takes a slightly different approach than most of what we’ve seen so far. Usually most people want to use an IInstanceProvider implementation to work with their DI container of choice. Common examples would be the integration of Castle, StructureMap, or Unity with WCF to allow…

0

DataServices, IErrorHandlers, Exceptions and the Gulf between them.

OK I am going to let you in on a dirty little secret about Astoria based services. This secret is probably not even known to you. Ready to hear it? Really? Well here it is:  You’d better never have anything go wrong as you’ll never know it. It devours exceptions and is hungry for more!…

2