AG_E_PARSER_BAD_TYPE [Line:9 Position: 57] error!

AG_E_PARSER_BAD_TYPE [Line:9 Position: 57] error!

Old forum URL: forums.lhotka.net/forums/t/6185.aspx


CyclingFoodmanPA posted on Saturday, January 17, 2009

Ok, I am making progress but am continuosly encountering errors which are strange.  Now, I have received this error before when creating other tutorials in the Page.xaml file, but I usually copied in the xaml file from the solution and all was ok.  However, I am creating the SampleApp from Rocky's blog tutorials on Silverlight, copied in the Page.xaml file from the SimpleCslaLightAppvb and am still getting an error as follows: AG_E_PARSER_BAD_TYPE [Line: 9 Position: 57]. 

Now, I look at line 9 and it is as follows:
<l:VisibilityConverter x:Key="VisibilityConverter" />
and all seems to be ok.  And yes, I did add the class VisibilityConverter.vb to the file.  Initially I had not added that file and was getting the error.  I added the file and am still getting the error.  Also, I do have the xmlns:l="clr-namespace:SampleApp" line at the top.

I know it is something to do with the XAML parser based on the error, but if someone could steer me in the right direction of where to look other than the obvious things which I have already checked out, please let me know.  As I mentioned earlier, I usually got this error and then copied in the correct Page.xaml code and it went away, but that didn't work now and I think I need to be able to figure this out for future problems, which I know I will run into!  Gotta love this stuff!

Keith

 

 

CyclingFoodmanPA replied on Saturday, January 17, 2009

Also, this occurs on the InitializeComponent of the Public Sub New ctor of the Page.xaml file!

CyclingFoodmanPA replied on Saturday, January 17, 2009

Ok, just call me bonehead!  I discovered the problem.  Rocky called his application SimpleApp, I named mine SampleApp!  When I copied the xmlns lines in from his SimpleApp Page.xaml file, I left the namespace as SimpleApp even though I had the VisiblityConverter in there.  Back to coding and getting this Csla and Silverlight figured out.

Keith

Copyright (c) Marimer LLC