Groups | Blog | Home
all groups > dotnet remoting > april 2006 >

dotnet remoting : Remoting Issue with Events


James Hancock
4/6/2006 1:12:10 PM
Ok, so here's a weird one. Everything I've found on this is indicating that
the assembly hasn't been loaded. But in this case it definately has.

I'm rasing an event that is captured in another class that is part of the
same dll which then fires a method on an interface that is setup when the
class is created on the client side.

It's the only way I could get this whole thing working... at least in
theory...

So anyhow, I get no errors anywhere on the client side in the client class
that += the event now, which I was getting serialization errors before.

But when the event is raised on the server side, which uses the exact same
DLL that I just compiled using VS.net, I get the following error:

Unable to find assembly 'MonitoringShared, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null'.

MonitoringShared is the dll and the function that is raising the event is in
that DLL! How can it not find the dll when it's in that dll???

How do I fix this?

Thanks!

marijn.vanderzee NO[at]SPAM gmail.com
4/10/2006 7:40:39 AM
Your approach only works when you have set the TypeFilterLevel to full:

[VB]

Dim provider As New Channels.BinaryServerFormatterSinkProvider
' set the type level filter to full to allow for client
callback
provider.TypeFilterLevel =
Runtime.Serialization.Formatters.TypeFilterLevel.Full

Good Luck!

Marijn
James Hancock
4/10/2006 3:19:38 PM
I was getting that error, but I set it correctly and that went away, but now
it's giving me the error about the assembly not being found :<

[quoted text, click to view]

AddThis Social Bookmark Button