Sparx Systems Forum
Enterprise Architect => Bugs and Issues => Topic started by: Lars S on March 28, 2008, 07:41:55 pm
-
Hi,
I am developing a C# application through VS2005 that will read information from my EA-model. I have followed the steps in the EA user guide by adding the reference Interop.EA.dll into my VS2005 project and writing the following code:
EA.Repository r = new EA.RepositoryClass();
r.OpenFile("c:\\work\\SweTh.EAP");
But when running the C# application I receive the following message:
"System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)"
Anyone out there who can help me get around this problem?
/Lars :-?