DevPPC
asked on
Remoting: what does this error mean/how2 fix?: __identity System.Runtime.Remoting.RemotingException: Remoting cannot find field '__identity' on type 'System.MarshalByRefObject'.
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
+ __identity System.Runtime.Remoting.Re
at System.Object.GetFieldInfo
at System.Object.FieldGetter(
at System.Object.FieldGetter(
at System.RuntimeFieldHandle.
at System.Reflection.RtFieldI
at System.Reflection.RtFieldI
at Microsoft.Office.Tools.Deb
+ Identity System.Reflection.TargetIn
at System.MarshalByRefObject.
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle
at System.RuntimeMethodHandle
at System.Reflection.RuntimeM
at System.Reflection.RuntimeM
at System.Reflection.RuntimeP
at Microsoft.Office.Tools.Deb
what is wrong?
g
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Let's read Ingo's proposition here : http://www.dotnet247.com/247reference/msgs/18/92223.aspx
Or, there is a very complete article there : http://www.codeproject.com/KB/IP/remotingprobe.aspx