In developing a VB.NET app,
intended for both ABS and ADT;
The *.dll netloads/runs flawlessly in ABS 2007,
but won't even netload in ADT 2007 without bombing out in error:
(see error exeption text below)
The error has been narrowed down (I think?) to the line:
Application.AcadApplication.GetInterfaceObject(fProgID)
where fProgID is a String equal to: "AecX.AecBaseApplication.5.0"
I thought the string argument for GetInterfaceObject,
was universal for ADT/ABS, but maybe not?
If not, what's the proper string for ADT?
************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.Security.SecurityException:
That assembly does not allow partially trusted callers.
at
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly
asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh,
SecurityAction action, Object demand, IPermission permThatFailed)
at MyProject.MyClass.GetAecDoc(String fProgID)
at MyProject.MyClass.MySub()
The action that failed was:
LinkDemand
The assembly or AppDomain that failed was:
MyProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null The method
that caused the failure was:
System.Object GetInterfaceObject(System.String) The Zone of the assembly
that failed was:
Intranet