Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 13741 |  Welcome, Guest!   Register  Login
 Home > Coding Horrors > Windows Forms > Solution for Windowless ActiveX control issue in windows 7 machine ...
Manohpr

Solution for Windowless ActiveX control issue in windows 7 machine

 Coding Horror posted by: Manohpr | Posted on: 3/7/2012 | Category: Windows Forms | Views: 3387 | Level: Starter | Status: [Member] | Points: 75 | Alert Moderator   



'System.Reflection.TargetInvocationException: Unable to get the window handle for the 'AxMPAKManual' control. Windowless ActiveX controls are not supported. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.



To fix this issue is to turn off your hardware enabled DEP. PRD Software is currently working on a solution that will work without having to do this, however for the time being, the following work around is the only option available to get the Help Master Pro reports working on a Vista/Windows 7 machine that suffers from this issue.

Run a command prompt as administrator. To do this, click the start menu, select "All Programs", then "Accessories" and right-click on the "Command Prompt" shortcut and choose "Run As Administrator". From here you can use the following command to disable Data Execution Prevention (DEP) with the following command:

bcdedit.exe /set {current} nx AlwaysOff


You MUST restart computer after running the above command. You can always turn it back on again, do the same and run the following:
bcdedit.exe /set {current} nx AlwaysOn


Note: The changes you have made require you to restart your computer before they can effect.

I hope it will helpful for all.



Found interesting? Add this to:


Experience:1 year(s)
Home page:http://www.dotnetfunda.com
Member since:Wednesday, March 07, 2012
Level:Starter
Status: [Member]
Biography:
>> Write Response - Respond to this post and get points

More Coding Horrors

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/20/2013 9:18:49 AM