Windows防火墙阻止了WCF服务 [英] WCF service blocked by Windows Firewall

查看:150
本文介绍了Windows防火墙阻止了WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用HttpBinding的WCF服务.该服务正在自托管过程(Windows服务)中运行,并且该过程在Windows防火墙例外列表中.

I've got a WCF service using a HttpBinding. The service is running in a self hosting process (A Windows Service) and this process is inside the Windows Firewall exceptions list.

如果防火墙处于活动状态,并且我正在尝试使用C#客户端或Internet Explorer访问该服务,则该服务不会响应.但是,如果禁用了防火墙,则连接就像超级按钮一样.

If the Firewall is active and I'm trying to access the service using a C# client or Internet Explorer, the service does not respond. But if the Firewall is disabled the connection works like a charm.

有人对WCF和Windows防火墙到期吗?该问题出现在Windows 7 64位上.我还没有尝试过其他操作系统.

Does anyone have expirence with WCF and the Windows Firewall? The problem came up on Windows 7 64bit. I didn't try another OS yet.

我应该怎么做才能使它与活动的防火墙一起工作?

What am I supposed to do to get this working with an active Firewall?

关于迈克尔

我发现一个线索,因为wcf自托管使用http.sys,因此必须将http.sys添加到防火墙例外列表中.有什么建议,如何解决?

I found a clue, that the http.sys has to be added to the firewall exceptions list, as wcf self hosting uses http.sys. Any advices, how to solve this?

我尝试手动打开所有侦听端口,该端口也可以工作,但不是一种选择,因为我事先不知道它们.

I tried opening all listening port manually, which works too, but is not an option, because I don't know them in advance.

推荐答案

尝试MSDN文章 配置HTTP和HTTPS .

Try the MSDN article Configuring HTTP and HTTPS.

这篇关于Windows防火墙阻止了WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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