CodeDom does not exist in the type...

Ranorex Studio, Spy, Recorder, and Driver.
ElSticky
Posts: 34
Joined: Tue Sep 17, 2013 1:45 pm

CodeDom does not exist in the type...

Post by ElSticky » Thu Nov 19, 2015 3:38 pm

I created some tests and didn't build while creating them. I finished the creation and tried to build them but now every recording says The type name 'CodeDom' does not exist... (CS0426). I never experienced this before. Any thoughts on this?

ElSticky
Posts: 34
Joined: Tue Sep 17, 2013 1:45 pm

Re: CodeDom does not exist in the type...

Post by ElSticky » Mon Nov 23, 2015 10:55 am

The problem was solved by the Ranorex Support. I had a recording called 'System' which caused problems with the original System class
I’ve analyzed your solution and found the problem regarding the CS0426 error. You have created a Recording named “System”. Since every recording is also a C# class, the compiler is looking for the CodeDom namespace within your recording file.
Please rename the Recording to avoid such behaviors. After renaming the recording, please also check that the Program.cs file contains the following line of code

Keyboard.AbortKey = System.Windows.Forms.Keys.Pause;