C# 我的windows应用程序在客户端找不到web服务API引用协定的默认端点元素
我的windows桌面应用程序在客户端找不到web服务API引用协定的默认端点元素 客户端应用程序可以在VisualStudioIDE上正确执行,但它在客户端的环境中遇到了一些问题 服务器和客户端都是Windows操作系统,并且都运行在同一个本地网络上 我曾尝试使用Chrome浏览器从客户端连接到服务器端,因此我认为我们可以假设没有网络问题 如果这是与配置相关的问题,那么如何处理配置文件C# 我的windows应用程序在客户端找不到web服务API引用协定的默认端点元素,c#,asp.net,windows,web-services,service-model,C#,Asp.net,Windows,Web Services,Service Model,我的windows桌面应用程序在客户端找不到web服务API引用协定的默认端点元素 客户端应用程序可以在VisualStudioIDE上正确执行,但它在客户端的环境中遇到了一些问题 服务器和客户端都是Windows操作系统,并且都运行在同一个本地网络上 我曾尝试使用Chrome浏览器从客户端连接到服务器端,因此我认为我们可以假设没有网络问题 如果这是与配置相关的问题,那么如何处理配置文件 我在网上搜索了两天。 但这个问题仍然没有解决 客户端app.config中的代码段: <system
我在网上搜索了两天。 但这个问题仍然没有解决 客户端app.config中的代码段:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="RemoteAccessWSSoap" maxReceivedMessageSize="2147483647" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:49172/RemoteAccessWS.asmx"
binding="basicHttpBinding" bindingConfiguration="RemoteAccessWSSoap"
contract="RemoteAccessWS.RemoteAccessWSSoap" name="RemoteAccessWSSoap" />
</client>
</system.serviceModel>
请帮我个忙。非常感谢
我根据经验丰富的同事的意见解决了这个问题 他告诉我,我更愿意将web服务URI添加为“web引用”,而不是将其添加为VisualStudioIDE上的“服务引用”
多谢各位 你能把你收到的完整错误贴出来吗?
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="WebService1Soap" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647" />
<binding name="Service1Soap" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:49172/RemoteAccessWS.asmx"
binding="basicHttpBinding" bindingConfiguration="RemoteAccessWSSoap"
contract="RemoteAccessWS.RemoteAccessWSSoap" name="RemoteAccessWSSoap" />
</client>
[OperationContract(Name = "HelloWorld")]
string HelloWorld();
[OperationContract(Name = "AddDouble")]
string AddDouble(string a, string b);