It appears that the only reason IsGenuine raised the exception was because it was the first method call. I placed another method before it to test and got the same error.
ClickOnce deployment from VS2015 produces this unhandled exception which prevents the program from running on the client computer. The program appears as an application in Task Manager
ExceptionInfo: System.Security.SecurityExceptionStack:at wyDay.TurboActivate.TurboActivate.IsGenuine(UInt32,UInt32,Boolean,Boolean);at programName.Main,,ctor()...I have tried both full trust and partial trust (internet).
It appears that the only reason IsGenuine raised the exception was because it was the first method call. I placed another method before it to test and got the same error.
This doesn't sound like a problem with the TurboActivate class at all. But I can't tell with the information provided. Way more information is needed. Full exceptions with stack trace, for starters.