nettcpbinding

Can ZeroMQ be used to accept traditional socket requests?

孤人 提交于 2019-12-09 10:24:29
问题 I'm trying to re-write one of our old Servers using ZeroMQ, for now I have the following Server setup, (which works for Zmq requests): using (var context = ZmqContext.Create()) using (var server = context.CreateSocket(SocketType.REP)) { server.Bind("tcp://x.x.x.x:5705"); while (true) { ... } This kind of setup works fine if I use the Zmq client library to connect context.CreateSocket(SocketType.REQ) But unfortunately we've got a lot of legacy code that needs to connect to this server and the

Can´t add header to MassTransit message from OperationContext?

∥☆過路亽.° 提交于 2019-12-08 10:00:32
问题 I am trying to add a header to a Masstransit message containing information from the currently logged user on a WCF Web application. So at my web app, I have the following when the app starts: IBusControl bus = Bus.Factory.CreateUsingRabbitMq(cfg => { cfg.Host(new Uri("rabbitmq://localhost/test"), r => { //... }); cfg.ConfigureSend( s => s.UseSendExecute( c => c.Headers.Set(Constants.UserInfo, OperationContext.Current.Channel.Extensions.Find<PropertyUserInfo>().Info))); }); I am using an IoC

WCF - Disabling security in nettcpbinding (c#)

余生颓废 提交于 2019-12-07 03:58:36
问题 I'm trying to make a self hosted WCF app that uses nettcpbinding but works in an environment without a domain. It's just two regular windows pc's, one is the server and the other one will be the client. The problem with this is that when I try to get the client to connect it's rejected because of the security settings. Can you please point me in the right direction as to how I can get this scenario to work? Should I (if possible) disable security? Is there another (hopefully simple) way to

Anyone got IIS working reliably as a WCF client

筅森魡賤 提交于 2019-12-06 15:08:04
问题 I'm trying to get IIS6 to work reliably with a WCF service I have hosted in a separate Windows Service application on the same machine. Users connect to IIS via some HTTP exposed services, which is working fine, and then IIS needs to get some information from the Windows service to put in the HTTP response. I also need a callback channel between the Windows Service and IIS. After a lot of effort I got it working with a netTcpBinding and everything would be rosey for 5 or 10 minutes but after

WCF netTCPBinding

只愿长相守 提交于 2019-12-06 04:04:39
问题 WCF's netTCPBinding is "secured by default". As I understand it this means that.. Callers are authenticated using their windows credentials. Messages are signed Messages are encrypted. However, I can set up a very basic WCF client service set up on my localhost. The authentication will work as its on the same machine, but how does the signing and encryption work? WCF needs a certificate to sign and encrypt messages. If I dont have a certificate then how does my service manage to work? How

WCF NetTCPBinding vs HttpBinding difference in data sent on wire

冷暖自知 提交于 2019-12-06 03:37:37
问题 Say I have a service exposing two end points, 1st is a NetTCPBinding the second is any flavour of HttpBinding. They both implement exactly the same service contract. What is the difference in what is sent on the wire? Using netTcp is my message still serialised to XML ? Or some binary representation of my objects? In terms of what receives the messages what is the difference? Will the http endpoint only understand http commands (get/post etc) where as the nettcp end point understands

WCF - Disabling security in nettcpbinding (c#)

為{幸葍}努か 提交于 2019-12-05 07:59:45
I'm trying to make a self hosted WCF app that uses nettcpbinding but works in an environment without a domain. It's just two regular windows pc's, one is the server and the other one will be the client. The problem with this is that when I try to get the client to connect it's rejected because of the security settings. Can you please point me in the right direction as to how I can get this scenario to work? Should I (if possible) disable security? Is there another (hopefully simple) way to accomplish this? Regards, Daniel If you'd like to disable security for testing purposes, in the App

Register asp.net in IIS 10

情到浓时终转凉″ 提交于 2019-12-05 06:41:56
I have one issue which is related with registering asp.net in IIS 10. My environment is Windows 10, IIS 10, VS 2013 and VS 2015 installed, .NET 3.5 is a feature in Windows Features. I want to use nettcpbinding in iis, so, I installed WCF HTTP activation and WCF Non-HTTP Activation. After it, I will need to re-register asp.net in IIS. I run below command C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -i And I got below result, is asp.net registered correctly in IIS? Any help would be appreciated. Microsoft (R) ASP.NET RegIIS version 4.0.30319.0 Administration utility to install

Windows Authentication / Encryption in WCF With NetTcpBinding

不羁岁月 提交于 2019-12-05 00:03:04
问题 I'm trying to understand how windows authentication / encryption works with the NetTcpBinding in WCF. I need to know exactly what encryption algorithm is used to encrypt the data going across the wire (and some documentation to prove it). Will windows authentication / encryption still work if the client and or host is not on a domain? 回答1: The netTcpBinding using Windows Credentials requires the caller and the service to be on the same domain - or at least on mutually trusting domains.

Anyone got IIS working reliably as a WCF client

空扰寡人 提交于 2019-12-04 22:00:43
I'm trying to get IIS6 to work reliably with a WCF service I have hosted in a separate Windows Service application on the same machine. Users connect to IIS via some HTTP exposed services, which is working fine, and then IIS needs to get some information from the Windows service to put in the HTTP response. I also need a callback channel between the Windows Service and IIS. After a lot of effort I got it working with a netTcpBinding and everything would be rosey for 5 or 10 minutes but after that IIS would report the WCF channel as being faulted and then clam up and stop processing any