DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 27 Jun 2007 17:44:00 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.webservices        back       

Thread Index
  1    Philip K


Using Remoting how to tell server is down verses error doing servi   
I am using .NET Framework v2.0 and using a singleton object.

I am using some thing like:

//
// Connect/reconnect by creating object at server and getting proxy
//
if(!commsOK)
{
    if(timeToRetryComms)
    {
        MyRemotingObject myRemotingObject = new MyRemotingObject();
        myRemotingObject = 
           (IMyRemotingObject) Activator.GetObject( 
typeof(IMyRemotingObject), url);
        commsOK = (myRemotingObject != null);
    } 
}

//
// If the object is still communicating use it - mark comms down if com fails
//
if(commsOK)
{
  try
  {
     myRemotingObject.DoOperation(a,b,c);
  }
  catch(WebException) 
  {
      commsOk = false;
  }
  catch(RemotingTimeoutException)
  {
     commsOk = false;
  }
  catch(Exception ex) // comms still assumed to be OK
  {
      TellUserWhatTheErrorIsSoHeCanFixIt(ex); // i.e. File I/O error at 
server 
                    // errors like (user gave wrong directory path or such)
  }
}
Date:Wed, 27 Jun 2007 17:44:00 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us