Tuesday, 10 May 2011

Visual Studio - error: System.Security.SecurityException was unhandled (trying to use a referenced DLL)


situation

Visual Studio compiles an application that is using a foreign DLL (a referenced one) but on run time whern the app tries to use the dll occurs the follow error
problem

Visual Studio - error
System.Security.SecurityException was unhandled
  Message="That assembly does not allow partially trusted callers."
difficulty level

1/10 :)
compatibility

VS2008
solution

project -> properties -> security -> check Enable ClickOnce Security Settings -> select This is a full trust application

No comments:

Post a Comment