WCF错误 [英] WCF error
问题描述
我想在控制台应用程序中使用WCF服务.我创建了一个测试控制台应用程序,并尝试通过提供URL?wsdl来添加服务引用.但是我坚持 以下错误
{无法从传输连接中读取数据:远程主机强行关闭了现有连接."} >
{"基础连接已关闭:接收时发生意外错误.}
请尝试运行以下命令:
netsh接口tcp设置了全局autotuninglevel = disabled以下类似的线程供您参考:
https://social.msdn.microsoft.com/Forums/vstudio /en-US/home?category = netdevelopment
最好的问候,
I want to consume a WCF service in a console application. I created a test console application and tried to Add Service reference by giving the URL?wsdl. But I m stuck with the following error
{"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."}
{"The underlying connection was closed: An unexpected error occurred on a receive."}
Hi,
Please try to run the commend as below:
netsh interface tcp set global autotuninglevel=disabledThe following similar thread for your reference:
Do you want to access SharePoint content using SharePoint WCF service in console application?
If the WCF service is not relate to SharePoint, I suggest you post it to the corresponding forum, you will get more help and confirmed answers there.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=netdevelopment
Best Regards,
这篇关于WCF错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!