473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

AppDomain CreateInstanceAndUnwrap

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
1 4657
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Satinderpal Singh | last post by:
Hi All, I have an EXE, I load the DLL from that exe in a seperate AppDomain. (I have not given reference to that DLL from the EXE). Now, i call some commands of that dll from the EXE, and in...
1
by: José Joye | last post by:
I have created a new AppDomain from within my window Service. I need to pass some delegates to an instance of a class loaded in the other appDomain. With the way I currently do it, the delegates...
0
by: Eli Abitbol | last post by:
Hi All I am using a few Microsoft application blocks in our winforms applications I am having problem with the Microsoft.ApplicationBlocks.ExceptionManagement components The samples for...
5
by: Chris | last post by:
Hi I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have...
1
by: Niklas Magnusson | last post by:
During deployment for a project i want to perform a number of tasks automatically. for example update a database. Theese tasks needs configuration settings from the .config file that are included...
3
by: Frank Uray | last post by:
Hi all I have a problem with loading a assembly ... I am trying to do the following: - I have a directory with a dll (assembly) in it (not the currect dir.) - I am trying to load this assembly,...
0
by: mathboy2 | last post by:
Hey, I've created a very simple test app to try and fix a problem I'm having. Basically I'm trying to log to a text file from a class in a seperate app domain that I've created. When I first...
1
by: ThunderMusic | last post by:
Hi, (My code is at the end of this post) I have an AppDomain that must load a simple assembly that has only one class with one method and it does not work... I receive this exception : "Could...
4
by: illegal.prime | last post by:
Hi all, I'm getting unexpected results when trying to preload assemblies into an AppDomain I'm creating. Upon creation of the AppDomain - I attach an AssemblyResolve to both my current AppDomain...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.