Message 1 of 5
Unable to attach the revit.exe to visual studio

Not applicable
09-05-2018
04:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am trying to debug the code I've written. I'm even trying it with the "My first Revit Plug-in" code so that it will be simple and not related to the code..
I've tried almost every way thats explained and discussed on the forum but no luck...
I'm using VS 2015 and Revit 2017.1
I've set use managed compatibility from debugging options. I've enabled native code debugging option.
I've tried targeting .NET framework 4.5.2 and 4.6.1
In the end I've tried to attach another process(i.e calc.exe) and it was fine. Its just Revit.exe refusing to be attached to the VS debugging. The error I get is ExecutionEngineException.(shown in the screenshot)
Can anybody understand whats going wrong?