views:

496

answers:

3

I'm using prism and SL3, as soon as I drop a DataForm Control in any modules, I get this error:

AG_E_PARSER_BAD_TYPE [Line: 6 Position: 31] at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at HelloWorldModule.Views.HelloWorldView.InitializeComponent() at HelloWorldModule.Views.HelloWorldView..ctor()

I don't get this error if I drop the DataForm control in my Shell.xaml, only if I drop in any views in the modules. anyone can shed some light?

+2  A: 

You need to add Microsoft.Windows.Controls to your ModuleManifest.xaml..

Yes, i have had the same problem. ValidationSummary is defined in System.Windows.Controls.Data.Input assembly. If you are using Prism, then its not enough just to add this assembly reference to class library that is using ValidationSummary, but also you have to add the same reference to your Shell Silverlight project (main SL project where your bootstrapper is located)
Roboblob
A: 

The latest drop of PRISM suggests that the ModuleManifest is obsolete, so the comment above will not work.

In addition, how can one resolve this AG_E_PARSER_BAD_TYPE error when viewing the XAML in design mode? For me the run-time is fine, but i receive this error when viewing in Visual Studio 2008's design view.

density6
A: 

Yes...you need to add reference of the dll. It worked for me.

Pravin Lanjankar

related questions