There was an error downloading metadata from the address

前端 未结 10 1396
情歌与酒
情歌与酒 2020-12-16 22:21

I am trying to add service reference.

There was an error downloading metadata from the address

this is the error which is being displayed again and again?

相关标签:
10条回答
  • 2020-12-16 22:52

    In Web.config file I changed :

     <endpoint address="" binding="pollingDuplexHttpBinding"
        contract="IAsyncTaskService"/>
    

    to this :

    <endpoint address="" binding="pollingDuplexHttpBinding"
        contract="DuplexService.Web.IAsyncTaskService"/>
    

    and error was removed. Zeni

    0 讨论(0)
  • 2020-12-16 23:01

    There are atleast 4 possibilities:

    • The metadata exchange mex endpoint is not defined
    • metadata exchange is not enabled
    • You are using the wrong address
    • You are being blocked by some security setting

    Try the url in a browser to see that it returns a wsdl

    0 讨论(0)
  • 2020-12-16 23:06

    Try rebuilding the project first, if that does not fix it, try changing the property httpGetEnabled from FALSE to TRUE in your web.config.

      <serviceBehaviors>
        <behavior name="serviceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    
    0 讨论(0)
  • 2020-12-16 23:08

    I had an issue like this one : Adding a service reference failed with a message "Method not allowed".

    The wsdl worked fine in my browser..

    The reason was that I configured the endpoint to listen on http://0.0.0.0:6000/mex, which the "Add Service Reference" tool doesn't seem to like. Changing it to a real IP address made it work (e.g. http://127.0.0.1:6000/mex)

    0 讨论(0)
提交回复
热议问题