HighTechTalks DotNet Forums  

AppDomain and Interfaces

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss AppDomain and Interfaces in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jessard
 
Posts: n/a

Default AppDomain and Interfaces - 11-04-2007 , 07:30 PM






Hi All,

I have a scenario where i make a secondary AppDomain to load in a type from
a dll I have. The type that I load in (with
AppDomain.CreateInstanceAndUnwrap(string, string)) inherits from an interface
which is known in the initial domain. When i convert this object back to
it's interface and call methods on it polymorphically I get a situation where
the method is not entered and the code in the object method is not run.
There is no exception however. What am I doing wrong?

Any help would be excellent.

Thanks,
Jesse

Reply With Quote
  #2  
Old   
MagicXtr
 
Posts: n/a

Default Re: AppDomain and Interfaces - 11-09-2007 , 07:52 AM






Hi, Jessard!
Could you provide some code?

With best wishes


Reply With Quote
  #3  
Old   
Jessard
 
Posts: n/a

Default Re: AppDomain and Interfaces - 11-09-2007 , 01:01 PM



Hi,

I managed to get this working. I am not entirely sure of the reason
however. I didn't change anything in the code but I did rebuild the dll i
was loading in and the class library the interface it was inheriting again so
it must have been some versioning problem.

Anyhow, thanks for your response.

"MagicXtr" wrote:

Quote:
Hi, Jessard!
Could you provide some code?

With best wishes



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.