Friday, October 29, 2010

Service provider is missing the INameResolver service - WPF error

I got this error when I tried to use the new WPF 4 x:reference feature in visual studio 2010. Apparently, it is one of the VS 2010 XAML designer's glitches. Stop banging your head on the desk trying to figure out what went wrong and ignore this error.

Here is the explanation from Adam Nathan's WPF 4 unleashed book:
"The x:Reference markup extension is often mistakenly associated with the XAML2009
features that can only be used from loose XAML at the time of this writing. Although
x:Reference is a new feature in WPF 4, it can be used from XAML2006 just fine as long as your project is targeting version 4 or later of the .NET Framework.
One glitch is that the XAML designer in Visual Studio 2010 doesn’t properly handle x:Reference, so it gives the following design-time error that you can safely ignore:
Service provider is missing the INameResolver service"





No comments:

Post a Comment