当前位置: 首页 > 工具软件 > Rant > 使用案例 >

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

丌官子安
2023-12-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 is not 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/



 类似资料:

相关阅读

相关文章

相关问答