New to Telerik JustMock? Download free 30-day trial


When JustMock is referenced from the installation folder, it is possible to get the following exception during test run:

System.TypeInitializationException : The type initializer for 'Telerik.JustMock.SecuredReflection' threw an exception. ---- System.IO.FileNotFoundException : Could not load file or assembly 'System.Security.Permissions, Version=, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.


Add reference to System.Security.Permissions' nuget package. Target versions greater than

In this article