I am attempting to add Microsoft.VisualBasic as an External Reference to the .Net Project Resolver using the AddExternalReferenceFromSystemAssembly method with "Microsoft.VisualBasic" as the parameter. When this method executes, the following line excepts:
loader = (ProjectContentLoader)loaderDomain.CreateInstanceAndUnwrap(Assembly.GetExecutingAssembly().FullName, typeof(ProjectContentLoader).FullName);
with the following excetion:
An unhandled exception of type 'System.MethodAccessException' occurred in ActiproSoftware.SyntaxEditor.Addons.DotNet.Net20.dll
Additional information: ProjectContentLoader..ctor()
The loaderDomain variable's members all read
"System.Runtime.Remoting.RemotingException: Remoting cannot find field '_activationContext' on type 'System.AppDomain'.
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(Object instance, RuntimeTypeHandle fieldType, RuntimeTypeHandle declaringType, Boolean& domainInitialized)
at System.Reflection.RtFieldInfo.InternalGetValue(Object obj, Boolean doVisibilityCheck, Boolean doCheckConsistency)
at System.Reflection.RtFieldInfo.GetValue(Object obj)
at Microsoft.Office.Tools.Debugger.Tools.TryCreateDebuggerItem(MemberInfo member, Object target, __Item& item)"
for each member. I am able to successfully add System.* entries. The method fails without exception correctly for an assembly that should be pathed. Any suggestions?
loader = (ProjectContentLoader)loaderDomain.CreateInstanceAndUnwrap(Assembly.GetExecutingAssembly().FullName, typeof(ProjectContentLoader).FullName);
with the following excetion:
An unhandled exception of type 'System.MethodAccessException' occurred in ActiproSoftware.SyntaxEditor.Addons.DotNet.Net20.dll
Additional information: ProjectContentLoader..ctor()
The loaderDomain variable's members all read
"System.Runtime.Remoting.RemotingException: Remoting cannot find field '_activationContext' on type 'System.AppDomain'.
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(Object instance, RuntimeTypeHandle fieldType, RuntimeTypeHandle declaringType, Boolean& domainInitialized)
at System.Reflection.RtFieldInfo.InternalGetValue(Object obj, Boolean doVisibilityCheck, Boolean doCheckConsistency)
at System.Reflection.RtFieldInfo.GetValue(Object obj)
at Microsoft.Office.Tools.Debugger.Tools.TryCreateDebuggerItem(MemberInfo member, Object target, __Item& item)"
for each member. I am able to successfully add System.* entries. The method fails without exception correctly for an assembly that should be pathed. Any suggestions?