The name "XYZ" does not exist in the namespace "clr-namespace:ABC"

For anyone coming across this now, BEFORE YOU DO ANYTHING ELSE... if you're certain your classes/namespaces are correct and rebuilding has not solved your problem:

Try restarting Visual Studio

That's it!

This appears to be a bug with Visual Studio 2012 (also appears to affect all other versions that support XAML development)


Update: If restarting Visual Studio doesn't work, reboot the entire PC.

Update: As mentioned in comments by @Dunk, if restarting Visual Studio doesn't work, try deleting the .suo file


Your solution is running on a network share. .Net (and Visual Studio) applications can run into permission / access issues when running on a network share.

Copy your solution to a local drive (with full trust) and you should be fine.

It is possible to get a network drive working with full trust - you can find answers for this on StackOverflow and other places - but in my experience I keep running into obstacles when I do this, so try to avoid it unless it's absolutely critical to the problem at hand.

E.g. this question gives instructions about how to do this:

Give FullTrust to UNC share for Visual Studio 2012 and .Net 4.0

I've only ever tried this with VS2010 so (as indicated in the link) you might have better joy with 2012.


I experienced the same issue, but my files are stored locally. My IValueConverter resides in a different assembly than the view using it. Even though VS2013 IntelliSense suggested the following, it wasn't working:

xmlns:conv="clr-namespace:MySharedAssembly.Converters"

After I explicitly added the assembly at the end, it worked:

xmlns:conv="clr-namespace:MySharedAssembly.Converters;assembly=MySharedAssembly"