WPF – Silverlight error: AG_E_UNKNOWN_ERROR

When running my Silverlight project, I get an AG_E_UNKNOWN_ERROR. The project is ported from WPF and I can collect it on the web, I think it is invalid with my XAML The content is about

Edit C# control source can be found here: SilverlightCalendar/Controls

This is Generic.xaml, the style of my application.

 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas. microsoft.com/winfx/2006/xaml"
xmlns:c="clr-namespace:SilverlightCalendar.Controls">












< div class="content-split">

I recently debugged a bunch of these. When I can’t see the problem, I just comment on the big chunks of XAML until I don’t get an error and then Uncomment the part until I find the point that caused the exception.

Edit: Beginners get rid of the curly braces in TargetType=”{c:CalendarTimeslotItem}”. Just tried it and I just got it Exception. Just use TargetType=”c:CalendarTimeslotItem”

When running my Silverlight project, I get an AG_E_UNKNOWN_ERROR. The project is ported from WPF, I can collect it on the web, I think it is related to invalid content in my XAML

Edit C# control source can be found here: SilverlightCalendar/Controls

This is Generic.xaml, the style of my application.

 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"< br /> xmlns:c="clr-namespace:SilverlightCalendar.Controls">












I debugged a bunch of these recently. When I can’t see the problem, I just comment the big chunks of XAML until I don’t get the error and then uncomment the part until I find the point that caused the exception.

Edit: Beginners get rid of the curly braces in TargetType=”{c:CalendarTimeslotItem}”. Just tried it and I just got an exception like this. Just use TargetType=”c:CalendarTimeslotItem”

< p>

Leave a Comment

Your email address will not be published.