net.tcp

moved net.tcp WCF services from localhost to IP address on new site, services won't load

拈花ヽ惹草 提交于 2019-12-10 11:55:34
问题 I have a website running 2 WCF services. Working awesome until I needed to move them from the "Default Web Site" in IIS7 to a dedicated website with a new IP address. Now I get the error message: "...could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name" ALL I did was change: net.tcp://localhost/... TO: net.tcp://10.1.2.204/... I have changed every spot in my configs which once used

unable to setup net.tcp bindings for wcf application running on IIS

倾然丶 夕夏残阳落幕 提交于 2019-12-10 11:46:32
问题 I am trying to set up NET.TCP bindings for a WCF application deployed on IIS . I have already added net.tcp to Enabled Protocols of application, but when I am trying to add net.tcp binding, its throwing the error shown below: I have also activated the Windows Communication Foundation Non-HTTP Activation . NET.TCP services are also running. Thanks in advance 回答1: You need to add net.tcp to the enabled protocols of your site. Go to IIS Manager, right-click on your website, go to 'Manage Web

WCF net.tcp port sharing on IIS 7 / WAS

假装没事ソ 提交于 2019-12-10 09:42:31
问题 I am new to wcf programming and I have been working on a small project and am having problems with net.tcp port sharing. I am using .net framework 4 and iis 7. I have two wcf services (serviceA and serviceB) being hosted on our server in separate websites on IIS. Each website has its own .svc file, web.config and bin. If I have each of these services on different net.tcp ports then there is no problem and I can add the service reference to each of them from visual studio on my pc. The

NET TCP/HTTP WCF Hosted in IIS

北战南征 提交于 2019-12-09 11:29:33
问题 I'm new to WCF and IIS but been doing some reading on how to host a WCF application in IIS. We have a system we're trying to deploy to IIS which needs HTTP and NET.TCP endpoints. I have everything configured as I saw in random tutorials but I still can't connect from my client. Any help with the configuration would be greatly appreciated! My EdWCF.svc file in my WCF directory: < %@ ServiceHost Language="C#" Debug="true" Service="TwoFour.WCF.Engine.EdWCF" % > My Web.Config: <?xml version="1.0"

How to solve “The ChannelDispatcher is unable to open its IChannelListener” error?

夙愿已清 提交于 2019-12-09 02:34:45
问题 I'm trying to communicate between WCF hosted in Windows Service and my service GUI. The problem is when I'm trying to execute OperationContract method I'm getting "The ChannelDispatcher at 'net.tcp://localhost:7771/MyService' with contract(s) '"IContract"' is unable to open its IChannelListener." My app.conf looks like that: <configuration> <system.serviceModel> <bindings> <netTcpBinding> <binding name="netTcpBinding"> <security> <transport protectionLevel="EncryptAndSign" /> </security> <

WCF duplex TCP communication error

限于喜欢 提交于 2019-12-08 03:31:10
问题 I have a sample service to test WCF net.tcp communication. It is very simple service and all it does is subscribing a client to the service and then calls callbackchannel to notify all connected clients about broadcasted message. The service is hosted inside IIS 7.5. Here is service code and test client to test it. [ServiceContract(CallbackContract = typeof(ISampleServiceCallBack), SessionMode = SessionMode.Required)] public interface ISampleCuratioService { [OperationContract(IsOneWay = true

Hook into WCF service before deserialization of client request and after serialization of response

左心房为你撑大大i 提交于 2019-12-08 02:45:17
问题 Is there a way to get a hook into every call from a client made to a WCF service as soon as a client request is noticed at the server side (i.e. before deserialization of the request) after serialization of the response has finished so that e.g. those points can be added to latency measurements. It's OK if this is specific to net.tcp , which is what we are using. I guess adding a IDispatchMessageInspector would allow me to hook in before deserialization of the request (albeit after creation

No compatible TransportManager error

青春壹個敷衍的年華 提交于 2019-12-07 20:00:12
问题 Answer It was a configuration problem. We had two services in the application. Prior to the problem, both services had explicit binding configuration that matched and worked well. One service was going to be removed, so the dev remmed out the explicit binding configuration, forgetting that .NET 4.0 provides default (and different) bindings. Whichever service was hit first, its settings would not be incompatible with any other settings (since it was first) and would be fine. The service that

No compatible TransportManager error

巧了我就是萌 提交于 2019-12-06 13:55:19
Answer It was a configuration problem. We had two services in the application. Prior to the problem, both services had explicit binding configuration that matched and worked well. One service was going to be removed, so the dev remmed out the explicit binding configuration, forgetting that .NET 4.0 provides default (and different) bindings. Whichever service was hit first, its settings would not be incompatible with any other settings (since it was first) and would be fine. The service that was loaded subsequently would have different binding settings and be refused by the TransportManager.

WCF duplex TCP communication error

岁酱吖の 提交于 2019-12-06 08:50:13
I have a sample service to test WCF net.tcp communication. It is very simple service and all it does is subscribing a client to the service and then calls callbackchannel to notify all connected clients about broadcasted message. The service is hosted inside IIS 7.5. Here is service code and test client to test it. [ServiceContract(CallbackContract = typeof(ISampleServiceCallBack), SessionMode = SessionMode.Required)] public interface ISampleCuratioService { [OperationContract(IsOneWay = true)] void SubcribeToService(string sub); [OperationContract] string GetData(int value);