Debugging error in revit 2022 with visual studio 2022

Debugging error in revit 2022 with visual studio 2022

AMDGHEDY
Explorer Explorer
986 Views
2 Replies
Message 1 of 3

Debugging error in revit 2022 with visual studio 2022

AMDGHEDY
Explorer
Explorer

i cant debuging Revit Addin code in visual studio 

 

1.PNG

 

and after press continue i have the following massag

 

 

 

2.PNG

 

i need support for this issue.

 

Regards

Abdelraheem

0 Likes
987 Views
2 Replies
Replies (2)
Message 2 of 3

RPTHOMAS108
Mentor
Mentor

Unfortunately that exception message covers a multitude of sins, so is not that useful. You haven't said what you are targeting (hopefully net48).

 

These issues with VS 2022 seem to be coming up quite frequently and I'm not aware that anyone has noted that VS 2022 is a reliable thing to use with the Revit API 2022 version that came out prior to it? There is kind of a history of new versions of VS  having debugging compatibility issues with Revit API versions predating them. The whole 'use managed compatibility mode' thing that seems to have stuck (beyond the period it was intended for).

 

I think you are probably walking across the field first on this one, so need to come up with the solutions for others that follow.

 

 

Message 3 of 3

Omar_Amen
Advocate
Advocate

@Hi @AMDGHEDY ,
I faced this issue before, 
It worked after removing all the loaded add-ins from the addins folder and I found that the cause of the issue is an addin I've just installed and it located in the Autodesk plugin folder (C:\ProgramData\Autodesk\ApplicationPlugins)
and every thing is working smoothly after removing it,
check this

0 Likes