WCF错误 [英] WCF error

查看:78
本文介绍了WCF错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在控制台应用程序中使用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=disabled

The following similar thread for your reference:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/688b0fff-661f-4559-a711-6bcc104bcd6d/cannot-add-service-reference-in-visual-studio?forum=wcf

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,

Dennis


这篇关于WCF错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆