Richard et al, When the call fails, I get an exception saying that an internal error occurred:
System.Runtime.Remoting.RemotingException: Server encountered an internal error. For more information, turn on customErrors in the server's .config file. Server stack trace: 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) at ILG.TM.Common.PredictionEngine.GetEmails(NotificationSubscriber Subscriber) at TestPredEng.Form6.button2_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 1.0.3300.0 Win32 Version: 1.0.3705.288 CodeBase: file:///c:/winnt/microsoft.net/framework/v1.0.3705/mscorlib.dll ---------------------------------------- TestPredEng Assembly Version: 1.0.1347.27373 Win32 Version: 1.0.1347.27373 CodeBase: file:///C:/viewstorage/RLOHR_view_webwatch/TIS/Common/TMPredictionEngine/TES TPREDENG/bin/Release/TestPredEng.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.3300.0 Win32 Version: 1.0.3705.288 CodeBase: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e 089/system.windows.forms.dll ---------------------------------------- System Assembly Version: 1.0.3300.0 Win32 Version: 1.0.3705.288 CodeBase: file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll ---------------------------------------- TMPredictionEngine Assembly Version: 1.0.1347.21516 Win32 Version: 1.0.1347.21516 CodeBase: file:///C:/viewstorage/RLOHR_view_webwatch/TIS/Common/TMPredictionEngine/TES TPREDENG/bin/Release/TMPredictionEngine.DLL ---------------------------------------- System.Xml Assembly Version: 1.0.3300.0 Win32 Version: 1.0.3705.288 CodeBase: file:///c:/winnt/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system .xml.dll ---------------------------------------- System.Runtime.Remoting Assembly Version: 1.0.3300.0 Win32 Version: 1.0.3705.288 CodeBase: file:///c:/winnt/assembly/gac/system.runtime.remoting/1.0.3300.0__b77a5c5619 34e089/system.runtime.remoting.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.3300.0 Win32 Version: 1.0.3705.288 CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/sy stem.drawing.dll ---------------------------------------- I tried to turn on custom errors in the server component, but it make any difference - I didn't get any more information. Does this help at all? Thanks! Rebecca --- response --- When you say the calls fail, in what way do they fail? If you get an exception can you show the exception trace. A bit more diagnostic information will aid people in resolving your problem so can you add the extra information and repost your message to the list. Regards Richard Blewett DevelopMentor -----Original Message----- From: Rebecca Lohr [mailto:[EMAIL PROTECTED] Sent: 12 September 2003 15:25 To: [EMAIL PROTECTED] Subject: Passing a MarshalByRefObject as an input parameter causes error - URGENT Hi all, I'm working on a client/server application using .NET remoting. I have several objects in a class library that inherit from MarshalByRefObject. One of these classes is registered as a WellKnownType by the server and retrieved by the client through a call to Activator.GetObject(). All the other classes (around 20, I think) are retrieved as output parameters from subsequent function calls to this well-known class. Most of my function calls work just fine. However, I'm having trouble when I make "complex" function calls. There are two types of calls that seem to fail; the first type takes one of my MarshalByRefObjects as an input parameter, the other is a function that takes a basic type (int, string, etc.) as an input parameter, and I pass the result of an accessor function of a MarshalByRefObject as the input parameter. Both of these call types fail. The latter I can get around by creating temporary variables. However, I don't know of a way to solve the former problem (the MarshalByRefObject as an input parameter). I tried registering all my MarshalByRefObject classes as well-known types, but this didn't resolve my issue. I've also tried implementing the ISerializable interface in all the classes, but still had no luck. One other strange complication to this issue - if I run both the client and server portions on the same machine, the function calls execute correctly. They only fail when the server and client are running on two different machines. I've tried both a Windows Application and a Web application for the client piece, but neither option makes a difference. I need to resolve this problem quickly. Any help/suggestions are welcome and greatly appreciated. Thanks in advance. Rebecca Lohr =================================== This list is hosted by DevelopMentorŪ http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com