Here is one thread from December with a similar error:
http://forum.cakewalk.com/tm.aspx?m=2739549 Also, if you are trying to completely delete an X2 installation for a subsequent re-install. you should get rid of a few things manually, after going through the Control Panel uninstall of Sonar X2:
1. You will want to navigate to wherever the Cakewalk Content folder was installed, the default location is C:\Cakewalk Content. Look for a sub-folder called Sonar X2 Producer and delete that folder. PLEASE NOTE that if you had created any custom track or project templates and such (any content you created that lives in any of the sub-folders here), that you might want to first copy those to some other location so that you can paste them back in after the re-install.
2. You should also delete the application data folder for Sonar X2 Producer, if it exists. Navigate to: 'C:\Users\[You User Name]\AppData\Roaming\Cakewalk' and delete the 'Sonar X2 Producer' folder if found.
3. There are also 2 registry keys that you should delete. It is recommended that you backup your registry first. The 2 keys to delete are:
HKEY_LOCAL_MACHINE\SOFTWARE\Cakewalk Music Software\SONAR Producer\X2
HKEY_CURRENT_USER\software\Cakewalk Music Software\SONAR Producer\X2
4. After following the above steps, you should have removed the guts of X2, while leaving your projects folder intact, as well as other installed components, such as the stand-alone versions of Session Drummer 3, Rapture, Dim Pro, and the plugins.
It is also not clear if you are running the base X2, or if you installed the quick fix update, or if you installed the X2a update. I recommend that you install the maintenance, to get you to X2a. X2a addressed something like 250 bugs and other enhancements/adjustments, and may clear up your issues.
I hope the above helps,
Bob Bone