none
Adding behavior configuration for end-points using behavior extension. Issue in web.config file RRS feed

  • General discussion

  • <behaviors>
            <endpointBehaviors>
              <behavior name="ServiceLogBehavior">
                <ServiceLogger />
              </behavior>
            </endpointBehaviors>
    </behaviors>

    <extensions>
         <behaviorExtensions>
              <add name="ServiceLogger" type="MyNameSpace.ServiceBehavior, MyNameSpace.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
         </behaviorExtensions>
    </extensions>


    I m getting the follwing execption:

    Parser Error Message: An error occurred creating the configuration section handler for system.serviceModel/behaviors: Extension element 'ServiceLogger' cannot be added to this element. Verify that the extension is registered in the extension collection at system.serviceModel/extensions/behaviorExtensions.

    Parameter name: element


    • Edited by gbharath Wednesday, August 7, 2013 9:01 AM
    Wednesday, August 7, 2013 8:58 AM