I have a .Net 1.1 application runing fine in Windos xp. when run on windows7 i get this error " System security.security exception: unable to create hook..

 

System.Security.SecurityException: Unable to create Hook.

at System.Windows.Forms.SendKeys.InstallHook()

at System.Windows.Forms.SendKeys.Send(String keys, Control control, Boolean wait)

at System.Windows.Forms.SendKeys.SendWait(String keys)

Answer
Answer
 

System.Security.SecurityException: Unable to create Hook.

at System.Windows.Forms.SendKeys.InstallHook()

at System.Windows.Forms.SendKeys.Send(String keys, Control control, Boolean wait)

at System.Windows.Forms.SendKeys.SendWait(String keys)


Hello Robinhood_2006 – Welcome to Microsoft Answers Community.

.NET Applications like regular Win32®-based applocations
and Windows® designed application require to bypass User
Account Control (UAC)
, the exception occured probably since
the application running didn’t have permission to access, or modify
something.

System.Security <- This is namespace.
 SecurityException <- This is a class.

For more information please refer to the destails provided at MSDN:
System.Security.SecurityException.  

I hope you find this information useful and if you need any further assistance,
please feel free to contact me and let me know.

I hope this information was helpful…

Have a nice day…

Best regards,
Fisnik


Itknowledge24.com

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

 
 

Question Info


Last updated September 10, 2019 Views 3,896 Applies to: