[Mono-bugs] [Bug 76809][Nor] New - TargetInvocationException when calling Activator.CreateInstance

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Nov 23 20:43:23 EST 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by amk at pobox.sk.

http://bugzilla.ximian.com/show_bug.cgi?id=76809

--- shadow/76809	2005-11-23 20:43:23.000000000 -0500
+++ shadow/76809.tmp.27073	2005-11-23 20:43:23.000000000 -0500
@@ -0,0 +1,76 @@
+Bug#: 76809
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Debian Woody
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: amk at pobox.sk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TargetInvocationException when calling Activator.CreateInstance
+
+Description of Problem:
+
+When calling Activator.CreateInstance(...),
+System.Reflection.TargetInvocationException occurs.
+
+This happens when remoting server runs on debian (mono 1.1.10) and client
+on windows xp (SP2, .NET v1.1.4322) as well as both running on debian. When
+client is running on debian and server on windows, everything is OK.
+
+Steps to reproduce the problem:
+
+http://mono.host.sk/LibraryClass.cs
+http://mono.host.sk/SampleServer.cs
+http://mono.host.sk/SampleClient.cs
+
+1. mcs LibraryClass.cs -t:library
+2. mcs SampleServer.cs -r:LibraryClass.dll -r:System.Runtime.Remoting
+3. mcs SampleClient.cs -r:LibraryClass.dll -r:System.Runtime.Remoting
+4. mono SampleServer.exe
+5. mono SampleClient.exe
+
+Actual Results:
+
+Unhandled Exception: System.Reflection.TargetInvocationException: Exception
+has been thrown by the target of an invocation. --->
+System.Runtime.Remoting.RemotingException: Requested service not found. No
+receiver for uri SampleServer/RemoteActivationService.remin <0x006dc>
+System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
+(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg,
+System.Exception exc, System.Object[] out_args)
+
+Exception rethrown at [1]:
+
+in <0x006dc> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
+(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg,
+System.Exception exc, System.Object[] out_args)--- End of inner exception
+stack trace ---
+
+in <0x0010e> System.Reflection.MonoCMethod:Invoke (System.Object obj,
+BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
+parameters, System.Globalization.CultureInfo culture)
+in <0x001e5> System.Activator:CreateInstance (System.Type type,
+BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[]
+args, System.Globalization.CultureInfo culture, System.Object[]
+activationAttributes)
+in <0x0005b> System.Activator:CreateInstance (System.String assemblyName,
+System.String typeName, Boolean ignoreCase, BindingFlags bindingAttr,
+System.Reflection.Binder binder, System.Object[] args,
+System.Globalization.CultureInfo culture, System.Object[]
+activationAttributes, System.Security.Policy.Evidence securityInfo)
+in <0x00049> System.Activator:CreateInstance (System.String assemblyName,
+System.String typeName, System.Object[] activationAttributes)
+in <0x0008b> RemotingBug.SampleClient:Main (System.String[] args)
+
+
+Expected Results:
+
+no exception...


More information about the mono-bugs mailing list