PC Review


Reply
Thread Tools Rate Thread

CreateInstanceFromAndUnwrap

 
 
mr t
Guest
Posts: n/a
 
      7th Mar 2008
Hi, anyone know how to make this code work?

Dim obj As MarshalByRefObject =
CType(nd.CreateInstanceFromAndUnwrap("RLCMailer.dll",
"RLCMailer.RLCMailer"), MarshalByRefObject)

or even

Dim obj As Object = nd.CreateInstanceFromAndUnwrap("MyDll.dll",
"MyDll.MyClass")

I get error: MyDll.MyClass IS NOT SERIALIZABLE.

what am I doing wrong. the method "CreateInstance", works, in other
worsds this works:
Dim obj As Object = nd.CreateInstanceFromAndUnwrap("MyDll",
"MyDll.MyClass")

but CreateInstanceFromAndUnwrap (which loads from a file) does not
work for some reasons. is there any reason for that.

thanks.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
InvalidCastExcetion after AppDomain.CreateInstanceFromAndUnwrap dahwoud Microsoft Dot NET Framework 2 17th Apr 2012 03:11 AM
creating object using CreateInstanceFromAndUnwrap z f Microsoft Dot NET Framework 0 7th Sep 2005 02:40 PM
CreateInstanceFromAndUnwrap & References!? =?Utf-8?B?TGlsbGVTa3V0dA==?= Microsoft Dot NET 0 28th Nov 2003 10:46 AM
Need help: CreateInstanceFromAndUnwrap =?Utf-8?B?TGlsbGVTa3V0dA==?= Microsoft Dot NET 0 29th Oct 2003 08:11 AM
Help please: CreateInstanceFromAndUnwrap =?Utf-8?B?TGlsbGVTa3V0dA==?= Microsoft Dot NET 1 27th Oct 2003 07:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:44 AM.