I have a legacy WinForms Desktop app made in .NET 1.1 and Visual Studio 2003. This app consists on some executable files that are started in sequence using Process.Start method. Also to communicate each other it is used .NET Remoting.
Now I am debugging the application and I need to attach to a process and stop it at a concrete breakpoint but I cannot attach to it. Some time ago I could attach to this same process without problems but now I cannot. The only difference is that I have recently installed Visual Studio 2017 and TFS... I am not sure if it is the culprit.
In order to attach to a process I follow below steps:
- From Visual Studio 2003 I navigate to "Debug->Processes..."
- A "Processes" dialog window is opened and from there a list of processes is shown.
- From that list I select the process which I want to attach and I click on "Attach" button.
- "Attach to Process" dialog window is opened a list of programs type to debug is displayed. I select "Common Language Runtime".
- After selecting it I get below message error:
I have tried some workarounds like this and this but without success.
Anyway, debugging was always working without need to make this kind of workarounds and suddenly it has stopped working from one day to the next. I do not understand anything.... The projects are the same and I have not touch anything.