none
Metadata publishing for this service is currently disabled. RRS feed

  • Question

  • Hey guys!

    I'm having trouble with my web.config in a Web Service. It show's this message **Metadata publishing for this service is currently disabled.**

    I think it's correct, surely I'm missing something here...

    Web.config code

        <system.serviceModel>

        <bindings>
          <basicHttpBinding>
            <binding name="TichetInfo_WS_SOAP_HttpBinding">
            </binding>
          </basicHttpBinding>
        </bindings>

        <behaviors>
          <endpointBehaviors>
            <behavior name="TichetInfo_WS_SOAP_EndpointBehavior">
            </behavior>
          </endpointBehaviors>
          <serviceBehaviors>
            <behavior name="TichetInfo_WS_SOAP_ServiceBehavior">
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>

        <services>
          <service name="TichetInfo_WS.TichetInfo_WS_SOAP" behaviorConfiguration="TichetInfo_WS_SOAP_ServiceBehavior">
            <endpoint address="" 
                      behaviorConfiguration="TichetInfo_WS_SOAP_EndpointBehavior"
                      binding="basicHttpBinding" 
                      bindingConfiguration="TichetInfo_WS_SOAP_HttpBinding"
                      contract="TichetInfo_WS.ITichetInfo_WS_SOAPService" />
            <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
          </service>
        </services>

        <protocolMapping>
          <add binding="basicHttpBinding" scheme="http" />
        </protocolMapping>

        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>

      </system.serviceModel>

    Thank you!


    Tuesday, March 11, 2014 3:59 PM

Answers

  • Hi,

    I just copy your config file to my side, and it can work well:

    So I think maybe the Service Name in config file (service config) is incorrect, and the service name doesn't seem to correspond to the class that actually implements your service.

    For more information, please try to check this similar thread:
    http://stackoverflow.com/questions/4917761/wcf-metadata-publishing-for-this-service-is-currently-disabled-content-type-er .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by AndreiAN Wednesday, March 12, 2014 7:42 AM
    Wednesday, March 12, 2014 7:07 AM
    Moderator

All replies

  • Hi,

    I just copy your config file to my side, and it can work well:

    So I think maybe the Service Name in config file (service config) is incorrect, and the service name doesn't seem to correspond to the class that actually implements your service.

    For more information, please try to check this similar thread:
    http://stackoverflow.com/questions/4917761/wcf-metadata-publishing-for-this-service-is-currently-disabled-content-type-er .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by AndreiAN Wednesday, March 12, 2014 7:42 AM
    Wednesday, March 12, 2014 7:07 AM
    Moderator
  • Thank you Amy!

    Due to the fact that I am frankly lazy, I had made a copy of the REST.svc and named it SOAP.svc where I wrote my code for SOAP so I didn't have to go right click the solution -> add -> etc.

    The solution was to right click the SOAP.svc file, select view markup where the service name was TichetInfo_WS.TichetInfo_WS_REST so I just changed it to TichetInfo_WS.TichetInfo_WS_SOAP and now it works perfectly.

    Thank you so much and I'm sincerely sorry I have wasted your time!

    Wednesday, March 12, 2014 7:42 AM
  • Hi,

    Never mind. If you have any other problem, welcome to post it in the WCF Forum.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, March 12, 2014 7:53 AM
    Moderator