A number of people are getting an error when trying to run any report on Windows Vista. I've just created a new knowledge base article regarding this issue, however I'll also post it here for the sake of searchability and visibility.
Best regards,
Rod
Attempting to run any reports on a Vista machine results in an unexpected error
When attempting to run any report on a Vista machine, the following unexpected error occurs.
'System.Reflection.TargetInvocationException: Unable to get the window handle for the 'AxCrystalActiveXReportViewer' 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.
Background Information
This error will only occur on a Vista machine that has hardware enabled DEP (Data Execution Prevention) turned on. For further information on hardware enabled DEP, please refer to this Microsoft knowledge base article, or this Intel article.
Workaround
The only way at present to correct 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 workaround is the only option available to get the HelpMaster Pro reports working on a Vista 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
Applies to
All versions of HelpMaster Pro that run on a Vista machine with hardware-enabled DEP enabled.