Click here to Skip to main content
15,349,767 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi ,

I am getting the below exception when I am trying to ping another PC from my WCF application.
Could you please let me know any ideas/suggestions on how to resolve this issue.


Exception:
An exception of type 'System.ServiceModel.FaultException`1' occurred in GlobalWcfService.dll but was not handled in user code

Additional information: remotePingServer OXF (INHYZDPC23 ): The client's security session did not receive a 'close response' 
message from the service within the configured timeout (00:01:00).


Thanks,
Sudhakar
Posted
Updated 19-Jul-15 23:35pm
v2
Comments
Kornfeld Eliyahu Peter 20-Jul-15 5:51am
   
You probably got an exception inside the WCF app...but it was swallowed by this one (which only means that your connection is failty)...
Turn IncludeExceptionDetailInFaults on to see the inner exception...
E.F. Nijboer 20-Jul-15 5:55am
   
Check out the eventlog on the target machine (the system running the wcf service).
Member 3975629 20-Jul-15 7:48am
   
I checked the Event logs in the target PC. it is as follows. can we infer anything from this.

Message : The request channel timed out while waiting for a reply after 00:00:59.9989999. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
Source : AVEVA.GlobalWcf.ServiceClient
E.F. Nijboer 20-Jul-15 8:04am
   
Seems like the operation takes more than a minute to complete. You need to optimize it or increase the timeout (as needed) on both the server and client.
Member 3975629 21-Jul-15 9:17am
   
I have increased the sendTimeout="00:59:00" to almost 1 hour. still it is hanging and give the above time out error. Could you please let me know how to resolve this or any tips for debugging.? Thanks,Sudhakar
E.F. Nijboer 21-Jul-15 12:38pm
   
I would suggest running the WCF service locally in visual studio so you can debug it. Also run the client locally and connect to the local service. This gives you a better view on what is happening (and goes wrong).
Member 3975629 22-Jul-15 1:38am
   
Actually our application is a WCF service cum client. We need to run one instance of our application which acts as server in one PC and another instance of our application which acts as client in another PC. We can not run client and server on the same PC.Hence debugging is getting difficult.Could you please let me know if there are any other ways that we can debug and find out the problem in this case. Thanks,Sudhakar
E.F. Nijboer 22-Jul-15 11:23am
   
If you have the sourcecode of both server and client it won't be a problem running them on the same machine for test purposes. If for some unexplainable reason this somehow is not possible you can always resort to a virtual machine as a virtual second development system.
Member 3975629 24-Jul-15 5:56am
   
I am getting the below line in the debugger when break-all (pause) the execution. " Cannot evaluate expression because a native frame is on top of the call stack" . some times it is working and sometimes it is NOT working. my code base consists of UnManaged C++ code ,Managed C++ code and C# code.
E.F. Nijboer 27-Jul-15 3:31am
   
Try managed compatibility mode (see link for more info):
http://weblog.west-wind.com/posts/2013/Nov/21/Visual-Studio-2013-Could-not-evaluate-Expression-Debugger-Abnormality

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900