nettcpbinding

can wcf netTcpBinding callbacks return out of order

故事扮演 提交于 2019-12-11 05:53:40
问题 Consider a most simple client/server callback setup using netTcpBinding Server: _callback.BeginReceive(message, EndCallbackClient, null);//send message to client Client : [CallbackBehavior(ConcurrencyMode = ConcurrencyMode.Single, UseSynchronizationContext=false)] public class TradingClient : ITradingClientCallback, IDisposable { public void Receive(Message message) { //handle message } Please note <reliableSession ordered="true"/> is not in the WCF config If, for example, the client side

SecurityMode.None leads to TimeoutException instead of CommunicationObjectFaultedException

混江龙づ霸主 提交于 2019-12-11 02:24:31
问题 I have a WCF self-hosted service with net.tcp binding. I need it to be nonsecured with reliable session. When I configure it to nonsecure all calls to closed service (close, crash, process kill - any reason) lead to timeout exceptions (hang for a minute and timeout). When default (mode = Transport) - I get CommunicationObjectFaultedException at the same moment, seems like infrastructure automatically determines connection break. How can I get immediate CommunicationObjectFaultedException with

does WCF's NetTCPBinding supports Socks Proxy?

会有一股神秘感。 提交于 2019-12-10 23:24:09
问题 I've got a client/server WCF application I want to deploy in a corporate environement. They usually don't allow direct Internet connections, so I must use their SOCKS proxy. Is it possible to use the netTcpBinding channel over a socks proxy? 回答1: After a lot of research, definitely not (link to my own post on msdn) 来源: https://stackoverflow.com/questions/520692/does-wcfs-nettcpbinding-supports-socks-proxy

Socket connection was aborted - WCF

廉价感情. 提交于 2019-12-10 22:28:55
问题 I have a simple client server apps that uses WCF (netTcpBinding) when i'm launching the server and sending messages through the client everythings works fine , but when i'm closing the server manually and open it again (without closing the client app at all) the next time the client tries to send a message to the server i get this exception (on the client side): The socket connection was aborted. This could be caused by an error processing y our message or a receive timeout being exceeded by

How do I set ReliableSession.MaxPendingChannels when I create a NetTcpBinding in code?

三世轮回 提交于 2019-12-10 18:14:13
问题 We are getting this error: System.ServiceModel.ServerTooBusyException: The request to create a reliable session has been refused by the RM Destination. Server 'net.tcp://localhost:50000/' is too busy to process this request. Try again later. The channel could not be opened. As I understand it, I need to increase the value of MaxPendingChannels in the ReliableSession binding. However we configure WCF in code like this: serviceHost = new ServiceHost(typeof(MyServiceClass)); ServiceEndpoint

WCF service hosted in IIS 7 - binding configuration settings are ignored

南楼画角 提交于 2019-12-10 17:11:44
问题 I have a WCF service operation that accepts a byte array as part of its data contract. The service is only exposed internally (not to the internet), and I want to increase the quotas to allow for a 10MB byte array. The service is hosted in IIS7. When I try to send a byte array over the default length, I get the following exception message: There was an error deserializing the object of type MyService.ServiceContracts.Data. The maximum array length quota (16384) has been exceeded while reading

How do I deploy a certificate to the Trusted People store in Azure?

我们两清 提交于 2019-12-10 16:57:51
问题 How can I get a public key certificate deployed to my Worker Role's Trusted People store? I'm using PeerTrust for WCF (self-hosted TCP services in Azure): var creds = new ServiceCredentials(); creds.ClientCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.PeerTrust; I know how to reference the certificate both in my .csdef and in code. However, I don't know how to take a .cer file (with no private key) and actually get it into Azure so it can use it for

How to consume duplex wcf service in Windows Universal App

江枫思渺然 提交于 2019-12-10 14:19:51
问题 How can I consume wcf service with duplex contract in Windows universal app? I'm getting PlatformNotSupportedExcetpion: Operation is not supported on this platform. runtime exception when trying to consume duplex wcf service in Windows Universal App, targeting Windows 10 (10.0; Build 10240) According msdn it is supported API. If it is not possible, how should I proceed in my scenario? I have two applications (console and windows universal xaml app) running on the same machine and I need two

Win7 + VS 2010 + .NET4: Service using NetTcpBinding: net.tcp is not supported exception

不打扰是莪最后的温柔 提交于 2019-12-10 11:45:53
问题 I want to develop a very tiny service in WCF4 with callbacks to provide presence information (users, logins, logouts, etc), using NetTcpBinding. My development machine is a Windows 7 64 Es with Visual Studio 2010, no IIS installed. In order to create the services I've created a WCF Service Application project type and edited its web.config is: <?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <bindings>

Register asp.net in IIS 10

北城余情 提交于 2019-12-10 03:54:43
问题 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