I'm not sure why, but recently, Visual Studio cannot find the schema used in XAML in the root window.
This is the error message I get:
Message 1 Could not find schema information for element 'http://schemas.microsoft.com/winfx/2006/xaml/presentation:Window'.
The error causes IntelliSense to not work. However, the project is still compiling and working as expected. In every project that I open, the problem is the same. Starting with a new project, I am provided with the following XAML:
<Window x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> </Grid> </Window>
But I get the same error.
I tried, with no luck, all of the following:
- Reinstall Visual Studio 2010
- Reinstall .NET
- Removing the Visual Studio directory (\ Users \ [User] \ Documents \ Visual Studio 2010).
What do I need to do to fix this?
source share