XAML Binding Errors when using a Revit Plugin

XAML Binding Errors when using a Revit Plugin

Anonymous
Not applicable
1,493 Views
3 Replies
Message 1 of 4

XAML Binding Errors when using a Revit Plugin

Anonymous
Not applicable

This is really frustrating and confusing to me. I am not sure how to describe it but I will do my best here to describe the problem.

 

I am doing something similar to this: https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/lesso...

 

To start an external program (Revit.exe) via Visual Studio 2019.

 

When I click on start debugging (F5), Revit is launched.

 

However, after Revit is being launched, I received errors such as XAML Binding Failures and Hot Reload is unavailable as a result. (Screenshots included)

 

I Tried:

1) Reinstalled Visual Studio 2019, Reinstalled Revit 2021

2) Ensure .Net Framework 4.8 for Revit 2021
3) https://docs.microsoft.com/en-us/visualstudio/xaml-tools/xaml-hot-reload-troubleshooting?view=vs-201...

 

But none of them works. Does anyone know how to fix this?

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

Anonymous
Not applicable
Accepted solution

SOLVED

 

1) The Hot Reload being unavailable has nothing to do with the Revit API that I am trying to develop and use.

2) Some of XAML Binding Failures are similiar to "warnings." Some require the developer to solve by defining the reference, and ensuring that the reference is being referred correctly.

3) Check the C:\Users\<user>\AppData\Roaming\Autodesk\Revit\Addins\<version> to see if your solution is being build correctly.

Message 3 of 4

jeremytammik
Autodesk
Autodesk

Congratulations on solving and thank you for sharing!

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 4 of 4

nsadeghiWLWEY
Participant
Participant

I have the same problem. I checked everything. The Addin is built correctly on the considered path but I still receive XAML Binding Failures. Also, after debugging the Revit is launched but on the Add-in tab, my Addin command is not showed up.

It would be great If you can suggest other solution to this problem.

Thank you

0 Likes