Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 27 Aug 2008 16:44:07 +0530,    group: microsoft.public.dotnet.framework        back       


Reg TCPIP Connection Timout Socket Exception   
Hi,

When I try to do a remoting call where server network is down. I am getting 
exception saying like - "A connection attempt failed because the connected 
party did not properly respond after a period of time, or established 
connection failed because connected host has failed to respond". This is 
fine.

But I am getting exception only after 45 Seconds. It actually varies from 
30 - 60 seconds on different machine.

This is not acceptable to our product as this timeout delay is causing the 
performance issues in our product.

Can anyone give information how can I reduce this Timeout Exception delay 
period.

I tried by providing the TCPIPChannel Properties like

                IDictionary properties = new Hashtable();
                properties.Add("port", 9000);
                properties.Add("timeout", (uint)5000);
                properties.Add("connectionTimeout", (uint)5000);
                properties.Add("name", System.Guid.NewGuid().ToString());


                clientChannel = new TcpClientChannel(properties, null);
                ChannelServices.RegisterChannel(clientChannel,false);

Still no use .

Any help will be greatly appreciated.

Thanks & Regards
Sripraneeth Nara.
date: Wed, 27 Aug 2008 16:44:07 +0530   author:   Sripraneeth

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us