Go to previous topic
Go to next topic
Last Post 2/27/2008 3:35 PM by  Rod Weir
Error when opening a report on Windows Vista
 0 Replies
AddThis - Bookmarking and Sharing Button
Author Messages
Rod Weir
HelpMaster development team
Helpdesk Hall of Fame
Helpdesk Hall of Fame
Posts:555
Points:1017


--
2/27/2008 3:35 PM

    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.

    HelpMaster development team
    Check out the HelpMaster roadmap


    ---