Visual Studio 2015 Fails to lunch Revit 2017 for debugging

Visual Studio 2015 Fails to lunch Revit 2017 for debugging

Anonymous
Not applicable
2,277 Views
3 Replies
Message 1 of 4

Visual Studio 2015 Fails to lunch Revit 2017 for debugging

Anonymous
Not applicable

Hi,

 

I am trying to debug a Revit 2017 project using visual studio 2015. I get the following message:

 

Capture.PNG

In the project properties I have introduced the following address for the external program. This address is of course correct and was tested several times.

C:\Program Files\Autodesk\Revit 2017\Revit.exe

 

I am using .NET Framework 4.5.2 for compiling the code. The code compiles successfully and the generated DLL can be called from the add_ins menu. It actually works well, but needs to be debugged. 

 

What could be the probable cause? 

 

Thanks!

 

Saied Zarrinmehr.

 

0 Likes
Accepted solutions (1)
2,278 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

I found the solution from another post in this forum. I am sharing the answer for the others that may come across the same issue. 

 

check this post

 

http://forums.autodesk.com/t5/revit-api/advice-on-debugging-c-in-visual-studio/td-p/6496811

 

someone suggested to set the  "Used Managed Compatibility Mode". Check the comments and give him thumbs up!

 

Message 3 of 4

Anonymous
Not applicable
I would like to reopen this issue.

I just downloaded VS2015 and tried to run debug mode with the checkbox checked but got the following exception:

Exception thrown at 0x00007FF8DEEDA1C8 in Revit.exe: Microsoft C++ exception: FNPNS::TSM::CDoesNotExistException at memory location 0x000000FB53D5B150.

If there is a handler for this exception, the program may be safely continued.
0 Likes
Message 4 of 4

Anonymous
Not applicable
Guess this has to do with missing symbols which Autodesk can not ship. (seems relevant: http://forums.autodesk.com/t5/maya-programming/plugin-debugging-basics/td-p/4258482)
0 Likes