Hi everyone,
Recently, I encountered an issue.
I developed a Revit add-in tool using C#. When I run it via ExternalCommand
, it works fine. However, when I package it into a ribbon and test it, it initially works well, but after some time, it throws an error as you mentioned above — specifically, it reports that the XAML file of the add-in is missing. I’ve tried some solutions, like checking the namespace of the XAML file or building the XAML as a Page, but I still haven’t been able to fix it. Have you ever encountered this issue before?
Not really related to dynamo so you might have more luck raising on revit api focused forums.
In this case you likely have a wpf form without a xaml resource correctly associated to it. Make a new wpf form and compare the xaml/cs files to the ones you have currently as well as your csproj file to see what might be missing.
It is odd that it stops working eventually, and will likely relate to how you are implementing the form in the related code which people will need to see to help further. Possibly related to how you are handling the required Uri’s, check any static properties or classes you are using that relate to this if any and if you are make sure they remain correct on each duration using step through debugging.
Feel free to raise it here to continue further as it is the best place to get help for addins:
1 Like