Tuesday, September 06, 2005

.NET Remoting

.NET Remoting and Remote Events

Problem: I have a remotable object. This object has events. The server serves the object just fine. The client also creates the object just fine. Just when I try to add an event handler to the object, all sorts of exceptions come alive within mscorlib.exe. First, it's about some security level. Which was fixed by manually adding BinaryServerFormatterSinkProvider and setting .TypeFilterLevel to System.Runtime.Serialization.Formatters.TypeFilterLevel.Full.

Now, I have a really weird issue. The exception says, "Cannot find file . Culture info. blah blah blah blah"

After Googling half the internet and reading just about everybody's projects, I find that Microsoft is _maybe_ achnowledging this to be an issue and recommending a "sit a little to the left of the spinach stain on this couch after 12pm" approach.

This is just insane. Microsoft chose to implement this in the most bizzare way. Cool and new features promised by Microsoft keep varying in size and functionality between different releases. End result? No one wants to use any thing that hasn't been around for at least 10 years.

Forget the rant. This issue is just seemingly impossible to fix. Sure, Microsoft has a recommended work around on their website somewhere but it's just over my head at the moment. I am gonna have to sit and read it carefully this evening and then implement.