Hi lcrmj,
thanks for the information.
Just as I suspected, thrown exception is indeed "System.Security.VerificationException: Operation could destabilize the runtime".
Exception message “System.Security.VerificationException: Operation could destabilize the runtime” sounds very creepy. The truth is that we don’t do any dangerous operation with possibly catastrophic consequences for the runtime.
This enigmatic exception probably has very prosaic reason described above.
Please make sure that you have applied the hotfix.
You can also diagnose the problem using the PEVerify tool.
https://docs.microsoft.com/en-us/dotnet/framework/tools/peverify-exe-peverify-tool
If nothing from the above works and you still experience the problem, I would like to kindly ask you to share minimalistic project, which demonstrates this problem, with us.
Please send us also:
1) .Net Framework version used to compile the application.
2) .Net Framework version used to run the application.
3) Full windows version (output of the command winver).