AppDomain appDomain = AppDomain.Creat eDomain("appDom ain", null, null);
try
{
appDomain.Appen dPrivatePath(@" C:\DLLS\");
appDomain.Load( @"FF-DeliousDateTime Requestor");
ObjectHandle o = appDomain.Creat eInstance("FF-DeliousDateTime Requestor",
"DeliousTools.L oader");
object ob = o.Unwrap();
IDeliousToolsIn t obj = (IDeliousToolsI nt)ob;
obj.Start();
}
finally
{
AppDomain.Unloa d(appDomain);
}
Does anyone know how to solve this exception:
An unhandled exception of type 'System.Invalid CastException' occurred in
NewerDeliousLau ncher.exe
Additional information: Specified cast is not valid.
The error occurs in this line:
IDeliousToolsIn t obj = (IDeliousToolsI nt)ob;
Thank you in advance!
try
{
appDomain.Appen dPrivatePath(@" C:\DLLS\");
appDomain.Load( @"FF-DeliousDateTime Requestor");
ObjectHandle o = appDomain.Creat eInstance("FF-DeliousDateTime Requestor",
"DeliousTools.L oader");
object ob = o.Unwrap();
IDeliousToolsIn t obj = (IDeliousToolsI nt)ob;
obj.Start();
}
finally
{
AppDomain.Unloa d(appDomain);
}
Does anyone know how to solve this exception:
An unhandled exception of type 'System.Invalid CastException' occurred in
NewerDeliousLau ncher.exe
Additional information: Specified cast is not valid.
The error occurs in this line:
IDeliousToolsIn t obj = (IDeliousToolsI nt)ob;
Thank you in advance!
Comment