It seems that the IDE tryes to open a .cs code in "design mode".
With a fresh install of the IDE everytihing works correctly. Both in VS2017 and VS2019.
After installing CodeRush you get the error (see attached image).
If you disable coderush extension or remove… the error is still there (I've not tryed to uninstall and re-installa VS2017/2019)
Hello,
It seems like a bug with Visual Studio, try the following:
Close the solution. Go to the solution's file folder and delete the .SUO files. Then reload the solution in Visual Studio. In the solution file explorer, right click the ApplicationModulesManager.cs and select the "View code"(not "View Designer"). When the source file is opened, try to debug the target code.
Hi Artem,
your solution partially solved the problem.
With CodeRush uninstalled, deleting the .SUO files and reopening the solution solved the problem, the debug started without hurting me with the error on ever step of Debug. After that I reinstalled CodeRush and again I get the error on any step of debug (see the File1.swf).
Again uninstalling CodeRush… removing the .SUO ed debugging again I get no errors (see the File2.swf).
In both swf videos I press F11 to step into devexpress source code.
This happens only with DX objects when I enter source code with following the debugger source flow.
I cannot open those file directly from solution browser they are not in my solution… and if I open the DevExpress source code solution (for ExpressApp for example) double click on the *.cs files they opens correctly with the code editor.
THe problem is specific when debugging DevExpress source code and CodeRush is installed.
Thank you for the video and these details. Please give us some time to reproduce the issue.
Hello,
Thank you for your patience. We have replicated the issue and are looking for a fix.
As a workaround, I suggest you temporarily disable Debug Visualizer. Toggle the enable\disable Debug Visualizer button on the CodeRush Debug Toolbar to do this.

Perfect, disallowing debug visualizer everything works correctly.
I am happy to hear that.
We will notify you once we prepare a fix.