trying to use appdomain.createinstancefr
omandunwra
p and am getting the following errors:
+ __identity System.Runtime.Remoting.Re
motingExce
ption: Remoting cannot find field '__identity' on type 'System.MarshalByRefObject
'.
at System.Object.GetFieldInfo
(String typeName, String fieldName)
at System.Object.FieldGetter(
String typeName, String fieldName, Object& val)
at System.Object.FieldGetter(
String typeName, String fieldName, Object& val)
at System.RuntimeFieldHandle.
GetValue(O
bject instance, RuntimeTypeHandle fieldType, RuntimeTypeHandle declaringType, Boolean& domainInitialized)
at System.Reflection.RtFieldI
nfo.Intern
alGetValue
(Object obj, Boolean doVisibilityCheck, Boolean doCheckConsistency)
at System.Reflection.RtFieldI
nfo.GetVal
ue(Object obj)
at Microsoft.Office.Tools.Deb
ugger.Tool
s.TryCreat
eDebuggerI
tem(Member
Info member, Object target, __Item& item) System.Runtime.Remoting.Re
motingExce
ption
+ Identity System.Reflection.TargetIn
vocationEx
ception: Exception has been thrown by the target of an invocation. ---> System.Runtime.Serializati
on.Seriali
zationExce
ption: Type 'System.Runtime.Remoting.S
erverIdent
ity' in assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
4e089' is not marked as serializable.
at System.MarshalByRefObject.
get_Identi
ty()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle
._InvokeMe
thodFast(O
bject target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle
.InvokeMet
hodFast(Ob
ject target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeM
ethodInfo.
Invoke(Obj
ect obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeM
ethodInfo.
Invoke(Obj
ect obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeP
ropertyInf
o.GetValue
(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at Microsoft.Office.Tools.Deb
ugger.Tool
s.TryCreat
eDebuggerI
tem(Member
Info member, Object target, __Item& item) System.Reflection.TargetIn
vocationEx
ception
what is wrong?
g