Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 988347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:37:31+00:00 2026-05-16T05:37:31+00:00

I modified my web.config to add a custom binding in order to increase the

  • 0

I modified my web.config to add a custom binding in order to increase the buffer and message size, and it seems like in creating the service element explicitly, it has somehow broken the reference to my behavior element.

When I try to run my web service from VS using the WCF Test Client, or I go to the service page, I get the error:

Metadata publishing for this service is currently disabled.

I’ve compared my web.config to a few different sources on this and everything seems to match. I’ve no idea what the issue is.

Here is the System.serviceModel element:

<system.serviceModel>    
<services>
  <service name="BIMIntegrationWS.BIMIntegrationService" behaviorConfiguration="metadataBehavior">
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
    <endpoint address="http://localhost:1895/BIMIntegrationService.svc" 
              binding="customBinding" bindingConfiguration="customBinding0" 
              contract="BIMIntegrationWS.IBIMIntegrationService"/>
  </service>
</services>
<behaviors>
  <serviceBehaviors>
    <behavior name="metadataBehavior">
      <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
      <serviceMetadata httpGetEnabled="true"/>
      <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
      <serviceDebug includeExceptionDetailInFaults="true"/>
    </behavior>
  </serviceBehaviors>
</behaviors>
<bindings>
  <customBinding>
    <binding name="customBinding0">
      <binaryMessageEncoding />
      <httpTransport maxReceivedMessageSize="262064"
                   maxBufferSize="262064"
                   maxBufferPoolSize="262064" />
    </binding>
  </customBinding>
</bindings>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"  aspNetCompatibilityEnabled="true"/>

It almost seems like either the web service page is not finding the element. I don’t get an error complaining that the target behaviorConfiguration doesn’t exist, or anything like that, just that Metadata publishing is not enabled.

Any help would be greatly appreciated.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:37:31+00:00Added an answer on May 16, 2026 at 5:37 am

    I think i’ve “fixed” the issue. More coming later.

    EDIT:
    In order to “fix” my issue, I basically added a new WCF service to my application, and had it implement my previous interface, I then copied all the code from my original service and when I tweaked the .config file (to look pretty much like the one posted in the question), everything worked fine.

    Ofcourse, I know, like we all know, that there is no magic here, that there must be some discrepancy. This is when I noticed/remembered, that after I had created my original service, called “BIMIntegrationService.svc”, I had decided that this was too long of a name, so I renamed/refactored my class to “BIMIntegrationWS”. Doing this, however, does not change the name of the service file (and therefore the name of the file in the http:// address).

    Long story short, I made 2 changes to my .config and everything worked:

    1) I changed:

    <service name="BIMIntegrationWS.BIMIntegrationService" behaviorConfiguration="metadataBehavior">
    

    to

    <service name="BIMIntegrationWS.BIMIntegrationWS" behaviorConfiguration="metadataBehavior">
    

    After running the service like this, I got an error (a helpful one this time) complaining that if multipleSiteBindings was enabled, the endpoint address had to be relative. So:

    2) I set that to false (because I don’t remember why it was in there in the first place) and everything worked fine.

    I guess I should have taken a hint when it seemed like my web service was not using my “service” element at all. :\

    EDIT 2:

    Actually, you can see in my second comment, in the original question, that the auto-generated tag was pointing to: , as opposed to “BIMIntegrationService”.
    That should have given it away.

    I doubt many other people will have this same issue, but just in case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I host two sites in a single sitecore environment. I've modified web.config so that
I'm creating an Intranet site in ASP.NET MVC 3 Beta and would like to
I've got a project that has a config file which I've modified. I want
I've written a simple Java Console Application in Eclipse that references a WCF web
I'm getting an odd error with a MVC 3.0 RC project. It seems that
I'm working through a sample .Net MVC application. I've added the aspnet membership api
I was trying to use ajax control toolkit in sharepoint 2010, but i get
When I refresh my website in less than 2-3 minutes, Firebug shows these nice
I have quite simple task to accomplish - I have to set up the
I've been having a tough time getting jRuby on Rails 3 deployed on Tomcat

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.