M
Michael Schöller
Hi,
Well I get this error if I enable Code Coverage in my UnitTests in VS 2005
System.Security.VerificationException: Operation could destabilize the
runtime.
Well what I figured out is that its reated to the
[assembly: PermissionSet(SecurityAction.RequestOptional, Unrestricted =
false)]
line in the AsseblyInfo.cs of my Project.
Well there are 2 solutions to prevent that error but none of them makes me
realy happy.
Solution 1: Disable Code Coverage *out of question*
Solution 2: Add
[assembly: SecurityPermission(SecurityAction.RequestMinimum, UnmanagedCode =
true, SkipVerification = true)] to the AssemblyInfo.cs *works but....*
I looking for an Solution that will let me make Code Coverage and uses no
additional security settings.
Any ideas?
Michael
Well I get this error if I enable Code Coverage in my UnitTests in VS 2005
System.Security.VerificationException: Operation could destabilize the
runtime.
Well what I figured out is that its reated to the
[assembly: PermissionSet(SecurityAction.RequestOptional, Unrestricted =
false)]
line in the AsseblyInfo.cs of my Project.
Well there are 2 solutions to prevent that error but none of them makes me
realy happy.
Solution 1: Disable Code Coverage *out of question*
Solution 2: Add
[assembly: SecurityPermission(SecurityAction.RequestMinimum, UnmanagedCode =
true, SkipVerification = true)] to the AssemblyInfo.cs *works but....*
I looking for an Solution that will let me make Code Coverage and uses no
additional security settings.
Any ideas?
Michael