Geeks With Blogs

News





INauseous() Shawn Cicoria - Solution Architect, Craftsman and Artisan - INauseous() - Main Blog Here: www.Cicoria.com

If you’ve deployed your WCF Behavior Extension, and you get a Configuration Error, it might just be you’re lacking a space between your “Type” name and the “Assembly” name.

You'll get the following error message:

Verify that the extension is registered in the extension collection at system.serviceModel/extensions/behaviorExtensions

image

So, if you’ve entered as below without

<system.serviceModel>
  <extensions>
    <behaviorExtensions>
      <add name="appFabricE2E"
           type="Fabrikam.Services.AppFabricE2EBehaviorElement,Fabrikam.Services, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
    </behaviorExtensions>
  </extensions> 

The following will work – notice the additional space between the Type name and the Assembly name:

<system.serviceModel>
  <extensions>
    <behaviorExtensions>
      <add name="appFabricE2E"
           type="Fabrikam.Services.AppFabricE2EBehaviorElement, Fabrikam.Services, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
    </behaviorExtensions>
  </extensions> 
Posted on Thursday, June 10, 2010 8:04 PM .NET | Back to top


Comments on this post: Spaces in type attribute for Behavior Extension Configuration Issues

Comments are closed.
Comments have been closed on this topic.
Copyright © Shawn Cicoria | Powered by: GeeksWithBlogs.net