WCF Error RANT: An error occured creating the configuration section handler for system.serviceModel/

来源:互联网 发布:华泰证券交易软件 mac 编辑:程序博客网 时间:2024/04/30 17:01

Here is error happened web.config

<system.serviceModel><extensions>  <behaviorExtensions>    <add name="TestExtension" type="Mynamespace.DependencyInjectionServiceBehavior,MyAssembly,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null" />  </behaviorExtensions></extensions><behaviors>  <serviceBehaviors>    <behavior name="MyServiceBehavior">      <TestExtension/>    </behavior>  </serviceBehaviors></behaviors>

Solution

Notice there isnot spaces between each of the type name elements.  if you go and put the spaces in it works perfectly.

Mynamespace.DependencyInjectionServiceBehavior, MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

Reference:

http://notgartner.wordpress.com/2006/12/19/rant-an-error-occured-creating-the-configuration-section-handler-for-systemservicemodelbehaviors/



原创粉丝点击