M
Max
I'm using CreateInstanceAndUnwrap as follows:
object myinstance = myAppDomain.CreateInstanceAndUnwrap("LibraryFile",
"LibraryFileNamespace.LibraryFileClass", true, 0, null, null, null, null, null);
to get an instance of the LibraryFileClass so I can call a function in this class, and I
get the following compile error:
System.Runtime.Serialization.SerializationException: The type LibraryFileNamespace.LibraryFileClass in Assembly LibraryFile,
Version=1.0.2117.26436, Culture=neutral, PublicKeyToken=null is not marked as serializable.
Can someone explain to me why am I getting this error and how I can fix it?
object myinstance = myAppDomain.CreateInstanceAndUnwrap("LibraryFile",
"LibraryFileNamespace.LibraryFileClass", true, 0, null, null, null, null, null);
to get an instance of the LibraryFileClass so I can call a function in this class, and I
get the following compile error:
System.Runtime.Serialization.SerializationException: The type LibraryFileNamespace.LibraryFileClass in Assembly LibraryFile,
Version=1.0.2117.26436, Culture=neutral, PublicKeyToken=null is not marked as serializable.
Can someone explain to me why am I getting this error and how I can fix it?