PROFESSIONAL PRINTING TOOLS COMPANY
  Site Search:
 
 
free website hit counter
Known Issues

 

  • Data Execution Prevention (DEP) Prevents VSNETcodePrint 2008 from Working

    VSNETcodePrint 2008 addin to Visual Studio .NET 2008 deploys vsView (aka VSPrinter) ActiveX developed by ComponentONE for its  print/preview functionality. vsView ActiveX does not work on computers that have hardware-enabled DEP and causes VSNETcodeprint 2008 to fail with the following exception:

    Unable to get the window handle for the 'AxVSPrinter' control. Windowless ActiveX controls are not supported.

    Source="System.Windows.Forms"
    StackTrace:
    at System.Windows.Forms.AxHost.InPlaceActivate()
    at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
    at System.Windows.Forms.AxHost.CreateHandle()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.AxHost.EndInit()

    How do I determine if my computer supports hardware-enabled DEP?

    1. Click Start
    2. Select Control Panel
    3. Select System
    4. Click the Advanced tab
    5. In the Performance region select Settings
    6. Click the Data Execute tab in the dialog box that opens
    7. If you see "Your computer's processor supports hardware-based DEP" at the bottom of 'Data Execution Prevension" then your computer has hardware-enabled DEP

    Read more about DEP


    Circumvention

    We are working on a version of VSNETcodePrint that will work without you having to switch DEP off. Meanwhile the only option available to you is to with DEP off on your computer.

    How do I switch DEP off?

    Run a command prompt as administrator. From 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


    We applogise for the inconvienence.

    Joginder Nahil
    www.starprint2000.com

Home Products Downloads Support User Feedback Contact Us
  Copyright (c)1990-2008 StarPrint Limited. All rights reserved.