问题标签 [net.pipe]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 在 channelfactory WCF Net.Pipe 上设置 ServiceBehavior
我正在从表单应用程序托管 Net.Pipe WCF 服务,该服务在服务器上运行,主要用于内部计算。为了改进这一点,我的任务是围绕该服务创建一个 Rest shell,以便可以从服务器外部访问它。我设法轻松地连接到该服务,但是一旦将其放在实时服务器上,我的 rest shell 就无法再连接,我尝试对此进行调试,但记录的主要错误消息是:
由于内部错误,服务器无法处理请求。有关错误的更多信息,请在服务器上打开 IncludeExceptionDetailInFaults(来自 ServiceBehaviorAttribute 或来自 serviceDebug 配置行为)以便将异常信息发送回客户端,或者根据 Microsoft .NET Framework SDK 文档打开跟踪并检查服务器跟踪日志。
问题是我从代码连接到此服务,但我无法弄清楚如何转换我连接到服务主机的方式,以便我可以添加服务行为或将行为添加到我的通道工厂。
所以问题是:如何将行为连接到通道工厂,或者,如何通过服务主机连接到这个 net.pipe 服务。(我仍在研究第二种选择)
c# - C# WCF NetPipe firewall rules
I'm running service host with net pipe on one PC and I need to connect to this host from another PC in the network. Since net pipe doesn't have any port, I cannot find out what firewall exceptions must be implemented in on the PCs / network in order for these two PC successfully communicate. The service host is created following way
Where NetPipeUri is "net.pipe://localhost" and HostEndpoint is "MyFancyApplication". Any idea what firewall exceptions and network configuration (rules on routers) should I use in order to have it working ?