Chris
Chris

Reputation:

Silverlight 2 RTW Crashes IE7

Has anyone had this problem. You install Silverlight 2 RTW, and open your old project. Everything loads fine in the designer. You have to change a few properties of your DataGrid because "DisplayMemberBinding" was changed to "Binding". Press F5, and receive a Win32 exception in IEXPLORE.EXE. You go check out the event viewer and see this in the log:

Application: IEXPLORE.EXE
CoreCLR Version: 2.0.31005.0
Description: The process was terminated due to an internal error in the .NET Runtime at IP 7B8F898E with exit code 8013150a.

Any help?

Upvotes: 1

Views: 1386

Answers (3)

Warren
Warren

Reputation:

TextWrapping is not removed its just a property of the TextWrapping.. The document states that the "WrapWithOverflow" is no longer supported and should be changed to just "Wrap". I have it on my Silverlight 2 RTW and it works fine...

Upvotes: 1

Chris
Chris

Reputation:

For those wondering... this is the exception i recieved when i set my breakpoint:

Line: 453
Error: Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control 'Xaml1': System.Windows.Markup.XamlParseException: Invalid attribute value TextWrapping for property Property. [Line: 152 Position: 30]
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at UI.Silverlight.App.InitializeComponent()
at UI.Silverlight.App..ctor()

Upvotes: 0

Chris
Chris

Reputation:

Ok,

I'm happy to report I figured it out. There are many breaking changes in Silverlight 2 RTW, I suggest you read this document. The compiler doesn't tell you everything you need to know when you compile your solution, so it can still build but blow up when you run it.

The property causing the problem was "TextWrapping" on the "TextBlock" control. The property was removed in RTW. Why it was crashing the browser process, I have no idea, it's just a simple Xaml parse exception. I only found this out when I put my "App.xaml.cs" into debug by setting a breakpoint in the constructor.

I hope this helps someone else.

Cheers!

Upvotes: 0

Related Questions