The application attempted to perform an operation not allowed by the security policy
Posted on 2006-04-26
I am having an issue where if I use "SendKeys.Send() function", I receive a security error. I have tried working around this in the Administrator Tools in the Control Panel, but the issue persists.
The error received is:
"The application attempted to perform an operation not allowed by the security policy. The operation required the SecurityException. To grant this application the permission please contact your system administrator, or use the Microsoft .NET security policy administration tool.
Unable to create Hook."
Any ideas how to resolve the error?