By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,617 Members | 1,166 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,617 IT Pros & Developers. It's quick & easy.

C# Remoting MBR and dynamic assembly loader

P: 2

I'm writing a remoting app and I'm wondering if what I'm trying to achieve is possible.

My simplified project is composed of a .Net client app, and one .Net server service.

I do not have any problem to create the server (service), run it and communicate with the only one "published" singleton MBR.
The MBR instanciate (as a field) another "not published" class that is another singleton pattern.

No problem with the structure above. Every thing works fine aty this point.

Problems come in if I add a field to the "Non published" singleton, and that field has to load some assemblies dynamically (Plugin loader).
In that case, I am able to create an object from the dynamically loaded assembly but it is impossible to "cast back" it to it's original type.
I can see that the loaded underlying type and the type I want to cast it to are identical, but it fails to cast...

I ever tried this kind of plugin loader in other app with success, but without using remoting.

Does anyone can tell me if what I am doing is possible ?
Are MBR can have some indirect depencies loaded at runtime ?

Thanks a lot for reading.
Aug 14 '07 #1
Share this Question
Share on Google+
1 Reply

P: 2
Sorry, it was a problem of duplicated dll.... shame on me.
Aug 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.