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

  • General discussion

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

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

    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