[Mono-list] Remoting Puzzle

Charlie Poole charlie at nunit.com
Fri May 1 01:59:58 EDT 2009


Well, it was a good idea to look for an exception on a thread,
but it turns out not to be a serialization error.

Actually, it was a RemotingException: "Permission denied: cannot 
call non-public or static methods remotely." 

Now that seemed odd, since it's an interface method. On a hunch
I changed the definitions from void EventListener.MethodName
to just plain public void MethodName and it worked!

This seems like a mono 2.4 bug, whereby an explicit interface
definition looks like a non-public method, at least in the
context of a remoting call.

Charlie

> -----Original Message-----
> From: Danny [mailto:dgortonii at gmail.com] 
> Sent: Thursday, April 30, 2009 9:55 PM
> To: Charlie Poole
> Cc: mono-list at lists.ximian.com
> Subject: Re: [Mono-list] Remoting Puzzle
> 
> Not sure if this helps or not, but I've seen cross-platform 
> remoting issues caused by serialization incompatibility - 
> private member names differ across implementations so 
> SerializationInfo contains different keys.  Could it be that 
> a SerializationException is getting 'eaten' due to 
> multi-threading or similar situation?
> 
> Charlie Poole wrote:
> > Hi All,
> > 
> > NUnit has a feature where it can run tests in a separate process, 
> > possibly using a different CLR from the originating process 
> - the one 
> > running the Gui for example.
> > 
> > On Windows, when the Gui is running under .NET, I can launch a mono 
> > process to load tests under mono and even see the loaded 
> tree of tests 
> > in the Gui window.
> > 
> > However, when I try to run the tests, no progress 
> notifications ever 
> > arrive at the Gui, so it appears that the tests are not run.
> > 
> > I have ascertained that the tests are in fact run, but that 
> the very 
> > first progress call simply hangs without returning. The 
> call is to a 
> > method on the EventListener
> > interface: RunStarted(string, int). The EventListener is passed in 
> > when the Gui asks for the test to run.
> > 
> > This works fine when both processes are running .NET or 
> Mono, but not 
> > when a Gui under .NET has launched a Mono process.
> > 
> > Does this problem ring a bell with anyone?
> > 
> > Charlie
> > 
> > 
> > 
> > _______________________________________________
> > Mono-list maillist  -  Mono-list at lists.ximian.com 
> > http://lists.ximian.com/mailman/listinfo/mono-list
> > 
> 





More information about the Mono-list mailing list