Cannot locate resource 'folder/SomeView.xaml'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm facing a very frustrating issue with one of our addins. It is only happening on a single specific computer, only with Revit 2023 & 2024. All of the WPF windows throw an exception in the View's InitalizeComponent() method because they cannot locate the xaml resource. The dockable panes are working fine. In Revit 2020-2022 everything is fine on this pc, and have no issues on any other computers. If I make a simple minimal addin with a single wpf window in a separate project that is also working fine on that pc, and all the other third party addins that are using wpf are working fine.
I also checked our built assembly with .NET Reflector and I have all the .baml resources with their correct path under Addin.g.resources, and the generater InitalizeComponent() methods have the correct URI.
So in summary, I only have this issue on a single computer, in R2023, R2024 in a single addin, and only with wpf windows. Did anyone face a similar situation? Right now we have no idea, we are at the verge of reinstalling the whole OS.