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

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Dec 5 07:34:32 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 lluis at ximian.com.

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

--- shadow/76809	2005-12-01 22:05:30.000000000 -0500
+++ shadow/76809.tmp.21950	2005-12-05 07:34:32.000000000 -0500
@@ -208,6 +208,21 @@
 
 W/out the patch mono would reject /fooBar/test.rem.
 
 The patch simply allows URLs to start with the ApplicationName
 as well. It is supposed the be non-intrusive. I hope it is ;-)
 
+
+------- Additional Comments From lluis at ximian.com  2005-12-05 07:34 -------
+The patch looks almost correct. You should make sure the following
+tests cases work like in MS.NET:
+
+RemotingConfiguration.ApplicationName = "app";
+RemotingServices.Marshal (new MarshalObject (), "obj");
+Type t = RemotingServices.GetServerTypeForUri ("obj"); // this works
+t = RemotingServices.GetServerTypeForUri ("/app/obj"); // this works
+t = RemotingServices.GetServerTypeForUri ("app/obj"); // this returns null
+t = RemotingServices.GetServerTypeForUri ("/whatever/obj"); // this
+returns null
+t = RemotingServices.GetServerTypeForUri ("/obj"); // this works
+
+


More information about the mono-bugs mailing list