WCF测试客户端报告强制关闭连接 [英] WCF Test Client reports Forcibly Closed Connection

查看:119
本文介绍了WCF测试客户端报告强制关闭连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我刚刚尝试从C#模板创建WCF服务库.我没有做任何更改(文档说它应该只在这里工作:
演练:创建和访问WCF服务) ,然后单击运行.它构建良好,然后WCF客户端启动.在添加服务..."几秒钟后,它向我显示一条消息:

错误:无法从 http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex

Hi,
 
I have just tried creating a WCF Service Library from the C# template.  I didn't changed a thing (the documentation says it should just work here:
Walkthrough: Creating and Accessing WCF Services), and then clicked run.  It builds fine, then the WCF Client starts up.  After a couple of seconds of 'Adding Service...' it presents me with a message saying:

Error: Cannot obtain Metadata from http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex

如果这是您有权访问的Windows(R)Communication Foundation服务,请检查是否已在以下位置启用了元数据发布指定的地址.有关启用元数据发布的帮助,请参阅 .

If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address.  For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.

WS-Metadata Exchange错误
URI:
http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex

元数据包含无法解析的引用:'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex'.

http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex

    An error occurred while receiving the HTTP response to http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.

基础连接已关闭:接收时发生意外错误.

无法从传输连接读取数据:远程主机强行关闭了现有连接.

远程主机强行关闭了现有连接

HTTP GET错误
URI:
http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex

下载'http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex'时出错.

基础连接已关闭:接收时发生意外错误.

无法从传输连接读取数据:远程主机强行关闭了现有连接.

远程主机强行关闭了现有连接.

我试图关闭防火墙...不高兴.

>任何想法都会受到赞赏

Tony

推荐答案



*)您要在哪种Windows版本上测试该服务?
**)如果运行的是Vista/2008:http://localhost:8731/Design_Time_Addresses/是否保留为当前用户的命名空间?
(在命令提示符窗口中运行 netsh.exe http show urlacl 时显示吗?
*)能否为我们提供服务配置?

??-larsw
Hi,

 *) What kind of Windows version are you testing the service on?
    **) If you're running Vista/2008: Is the http://localhost:8731/Design_Time_Addresses/ reserved as a namespace for the current user?
   (Does it show up when you run netsh.exe http show urlacl in a command prompt window)
 *) Can you supply us with the service configuration?

 --larsw


这篇关于WCF测试客户端报告强制关闭连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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