我正在开发一个C#Web应用程序,它使用Web服务来获取数据。
我收到以下错误:“无法解析远程名称”。
奇怪的是,适用于IIS Express ,但不适用于。
编辑: 我的WebConfig:
<bindings>
<basicHttpBinding>
<binding name="TransactionalWebServiceBinding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="64000000" maxBufferPoolSize="524288" maxReceivedMessageSize="64000000"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="Basic" realm="" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://XXXXXX:443/XXXX"
binding="basicHttpBinding" bindingConfiguration="TransactionalWebServiceBinding"
contract="reference_XXXX.work_order_managementPortType" name="TransactionalWebServicePort" />
</client>
感谢您的帮助