AppDomain CreateInstanceAndUnwrap

G

Guest

Hi all

I still have some problems with AppDomain ... :-((

I am loading a dll by using AppDomain, AssemblyName and Assembly.
This works fine.
My dll implements a Interface. Now I would like to be able to
call some methods in this dll and after that I like to unload it.

Now when I try to use CreateInstanceAndUnwrap I get following exeption:
Type 'sCONTROL_SSSP.clsRemote' in assembly 'sCONTROL_SSSP, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' is not marked as serializable.

What do I have to do now ??
When I am loading this dll without using AppDomain, it works ...

Thanks again for any comments
Frank Uray
 
W

Willy Denoyette [MVP]

Your remotable object must derive from MarshalByRefObject.

Willy.


| Hi all
|
| I still have some problems with AppDomain ... :-((
|
| I am loading a dll by using AppDomain, AssemblyName and Assembly.
| This works fine.
| My dll implements a Interface. Now I would like to be able to
| call some methods in this dll and after that I like to unload it.
|
| Now when I try to use CreateInstanceAndUnwrap I get following exeption:
| Type 'sCONTROL_SSSP.clsRemote' in assembly 'sCONTROL_SSSP,
Version=1.0.0.0,
| Culture=neutral, PublicKeyToken=null' is not marked as serializable.
|
| What do I have to do now ??
| When I am loading this dll without using AppDomain, it works ...
|
| Thanks again for any comments
| Frank Uray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top