When I try to start a Web Server as a service with DPJ I am forced to reboot



When I try to start a Web Server as a service with DPJ I am forced to reboot my system.


When a Web Application Server is installed as a service on Windows XP SP2 with a processor that support DEP and you attempt to start this service through DPJ Application Server Testing page an exception error box indicating that an attempt was made to write to an invalid memory location will be displayed. Upon closing this message box you are presented with an additional message from the DEP system indicating that the system must be shut down.


When DPJ attempts to start the service it loads in some helper DLLs. The steps taken to perform this task appear to the DEP as an attempt to execute code in protected space. The DEP perceives this as an attempt to hack the system so it terminates the application which is Services thus forcing the system to be restarted.

Actions to correct the problem:

  1. Open the Control Panel.
  2. Select System Properties > Advance tab.
  3. Under Performance select Settings.
  4. In the Performance Options select Data Execution Prevention.
  5. Select the radio button Turn on DEP for all programs and services except those I select.
  6. From the list of programs in the edit box select Services and controller Apps.
  7. Select OK to close this dialog and also the System Properties dialog box.

If your system does not have a processor that supports hardware-based DEP then you will see a message at the bottom of the Performance Options dialog box indicating this. If this is the case and you are still seeing this problem then contact Technical Support through your normal means of obtaining DevPartner Support.

What is DEP (Data Execution Prevention)?

Data Execution Prevention (DEP) helps prevent damage from viruses and other security threats that attack by running (executing) malicious code from memory locations that only Windows and other programs should use. This type of threat causes damage by taking over one or more memory locations in use by a program. Then it spreads and harms other programs, files, and even your e-mail contacts.

Unlike a firewall or antivirus program, DEP does not help prevent harmful programs from being installed on your computer. Instead, it monitors your programs to determine if they use system memory safely. To do this, DEP software works alone or with compatible microprocessors to mark some memory locations as "non-executable". If a program tries to run code—malicious or not—from a protected location, DEP closes the program and notifies you.

DEP can take advantage of software and hardware support. To use DEP, your computer must be running Microsoft Windows XP Service Pack 2 (SP2) or later, or Windows Server 2003 Service Pack 1 or later. DEP software alone helps protect against certain types of malicious code attacks but to take full advantage of the protection that DEP can offer, your processor must support "execution protection". This is a hardware-based technology designed to mark memory locations as non-executable. If your processor does not support hardware-based DEP, it's a good idea to upgrade to a processor that offers execution protection features.

Old KB# 11110
Comment List
Related Discussions