Hi,
I am developing an application in ASP.NET. I have used SendKeys statements in the code to send the keyboard input to the application. The problem what I am facing is, its throwing an error saying -"System.Security.SecurityException: Unable to create Hook."
The code is as follows-
System.Windows.Forms.SendKeys.SendWait("{tab}")
System.Threading.Thread.CurrentThread.Sleep(1 * 1000)
I have also included following import statement at the top
Imports System.Windows.Forms
Please help.
I am developing an application in ASP.NET. I have used SendKeys statements in the code to send the keyboard input to the application. The problem what I am facing is, its throwing an error saying -"System.Security.SecurityException: Unable to create Hook."
The code is as follows-
System.Windows.Forms.SendKeys.SendWait("{tab}")
System.Threading.Thread.CurrentThread.Sleep(1 * 1000)
I have also included following import statement at the top
Imports System.Windows.Forms
Please help.