Skip to main content

You may get this error (An unhandled win32 exception occurred in k2studio.exe) after installing Visual Studio / Sql2005 because the installation changed you windows DEP settings from:
"Turn on DEP for essential Windows programs and services only" To
"Turn on DEP for all programs and services except those i selected:......"
DEP (Data Execution Prevention) is a “feature” of Windows 2003/2008 that is supposed to stop viruses from being able to attack the system’s memory.
This can stop the application from importing the reference correctly. The solution to get past this error is:
a.Right click My PC / Properties
b.Click Advanced Tab
c.Under Performance, click Settings
d.Click Data Execution Prevention tab
e.Select Turn on DEP for essential Windows programs and services only
f.Restart Windows This option is selected by default, but with installation of SQL 2005 or Visual Studio it changes and starts to cause a series of trouble without any information to the user. You can also test with doing the following:
1.Make sure the radio button labelled “Turn on DEP for all processes and services except the ones I select” is checked
2.Click Add at the bottom of the list
3.Browse to the executable that they are going to run and select it
4.Make sure the checkbox next to the executable name in the list is selected and click OK 5.Restart Please let me know if this solved the issue.


Regards Kallie



If DEP settings are not the culprit, the following might fix the issue:


1. Ran the script to enable the dr Watson error.
2. In the eventlog you will see the following.



Application: K2Studio.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileLoadException
Stack:

3. Opened the K2Studio.exe.Config and changed the Startup configuration to use "v2.0.50727" from v.4.

This did the trick and it is working fine.
Regards


The following links can provide more detail

http://social.msdn.microsoft.com/forums/en-US/vsdebug/thread/a52eb0ae-bcd8-4043-9661-d5fc3aa5167c/
http://support.microsoft.com/kb/923827/en-us
http://support.microsoft.com/kb/923827/en-us
http://support.microsoft.com/kb/811191


Kallie


Reply