System.Runtime.Remoting Exception

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Karthik Srinivasan (karthiks_75_at_hotmail.com)
Date: 03/26/04


Date: Fri, 26 Mar 2004 11:37:25 -0600

Hi,

I'm using IIS to host .Net remoting components.

Global.asax on Application_Start load the config file containing all the
remoting entries on the server
<wellknown type="Foo, Foo" mode="SingleCall" objectUri="Foo.rem" />

Clients load the config file containing the following entry
<wellknown type="Foo, Foo"
url="http://xxx.xxx.xxx.xxx/RemotingServices/Foo.rem"/>

When creating object, intermittently I get the exception mentioned below:

at
System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(Met
hodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
fExecuteInContext, Object[]& outArgs)
   at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessa
ge msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)

When this exception is thrown IIS logs it as '500'. I would really
appreciate if anyone can provide an explanation on why this exception is
thrown and how to resolve it.

Thanks,
Karthik Srinivasan



Relevant Pages

  • Remoting Exception
    ... I'm using IIS to host .Net remoting components. ... intermittently I get the exception mentioned below: ... hodBase mb, Objectargs, Object server, Int32 methodPtr, Boolean ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: COM DLL works fine in C# but not when using Remoting
    ... > Unhandled Exception: System.Runtime.InteropServices.COMException ... The server threw an exception. ... > mb, Objectargs, Object server, Int32 methodPtr, Boolean ...
    (microsoft.public.dotnet.framework.remoting)
  • RE: Backup & Monitoring not working!
    ... Error message in Windows Small Business Server 2003: ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.windows.server.sbs)
  • Re: Sharepoint 2007 - Installation Error - Failed to register SP s
    ... Windows 2000 Server. ... It is a bug with Beta 2 where the database server is running Windows 2000. ... Server I have the following exception: ... RunBehavior runBehavior, String resetOptionsString) ...
    (microsoft.public.sharepoint.portalserver)
  • return from server only works for built-in types
    ... But when I call _r.GetStatisticsthe client fails with the exception shown ... GetStatistics fails when client and server is on different networks. ... Win32 Version: 2.0.50727.832 ...
    (microsoft.public.dotnet.framework.remoting)