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

AppDomain CreateInstanceAndUnwrap

P: n/a
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
Mar 29 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Your remotable object must derive from MarshalByRefObject.

Willy.
"Frank Uray" <Fr*******@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
| 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
Mar 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.