Avatar of Jason Livengood
Jason Livengood
Flag for United States of America

asked on 

Problem with WCF web.config

I am trying to enable metadata publishing for my WCF service. Everytime i go to browse my service it gives me the error :"There is no endpoint behavior named 'ProductsBehavior'."  Attached is my web.config where you can see I do declare the behavior. Was wondering if anybody can tell me why it bombs out. Any help would be greatly appreciated.


<?xml version="1.0" encoding="utf-8" ?>
        <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=, Culture=neutral, PublicKeyToken=null" />
    <dataConfiguration defaultDatabase="AdventureWorksConnection" />
        <add name="AdventureWorksConnection" connectionString="AdventureWorks=Database;Server=JASON;Integrated Security=SSPI;"
            providerName="System.Data.SqlClient" />
      <service name="Products.ProductsServiceImpl">
        <endpoint address="" binding="basicHttpBinding" contract="Products.IProductsService" behaviorConfiguration="ProductsBehavior" />
        <behavior name="ProductsBehavior">
          <serviceMetadata httpGetEnabled="true" />

Open in new window


Avatar of undefined
Last Comment
Aaron Jabamani

8/22/2022 - Mon