I have the following:
The error says The 'clr-namespace' URI refers to a namespace '{0}' that is not included in the assembly.
I've build and rebuild but nothing happens. I'm sure this must work, because a WPF demo app that I downloaded has everything the same. What's going on?
Assuming your ViewModel folder isn't empty (or there actually is a type with BlooblieBlablie.ViewModel
as its namespace), and BlooblieBlablie
is the assembly name, the following should work:
xmlns:vm="clr-namespace:BlooblieBlablie.ViewModel;assembly=BlooblieBlablie"
I had similar problem when project's solution platform was set to x64. When I changed it to x86 problem went away.
Here is some explanation: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/6379d330-f382-4b4d-a690-e89326ab4c72
I had the same problem and solved it by not having my project in a path with hash-mark.
E.g D:#Temp had to be D:\Temp
I guess there's someone at Microsoft having missed an EscapedCodeBase in conjunction with the URI.
I had the same error message given to me. But the underlying problem was different. I moved my MainWindow.xaml to a different folder, and I forgot to update my App.xaml StartupUri. I then updated my StartupUri in my App.xaml and the problem was fixed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With