c# - CommunicationException; Store App -> .NET 4.5 WCF Duplex TCP Service; Instant Timeout -
i having trouble getting windows store app make calls wcf service.
the service duplex service using nettcp binding. first time client (a windows 8.1 store application) uses service, throws exception:
an exception of type 'system.servicemodel.communicationexception' occurred in mscorlib.dll not handled in user code
additional information: socket connection aborted. caused error processing message or receive timeout being exceeded remote host, or underlying network resource issue. local socket timeout '00:09:59.9968452'.
this timeout near-equal max, 10 minutes. exception, however, happens immediately, , breakpoints in service function never hit. 2 seem talking @ level because altering security protocol or endpoint address cause other exceptions (security , connection expect). put breakpoint in service , function trying call never gets hit.
i have tried:
- ensure feature equivalence between service , client nettcpbinding configurations
- raise timeouts, sizes (1-10 minutes each, 10000000 max sizes)
- ensure passed object types datacontracts default constructors
- prayer; considering burnt offering
any appreciated. new wcf , having trouble finding windows store / nettcp / duplex targeted scenario.
if windows store app client , wcf service on same computer , you're not running windows store app client inside visual studio, need enable loopback communication. check out article:
http://msdn.microsoft.com/en-us/library/windows/apps/dn640582.aspx
at bottom talks command line utility: checknetisolation
also, try making method call simple possible no return , no arguments. know said checked of 'datacontract' attributes. things can tricky such if you're using polymorphism , base class doesn't have 'knowntype' derived.
Comments
Post a Comment