Book a Demo

Author Topic: SecurityException  (Read 5487 times)

Lars S

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
SecurityException
« 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 :-?