Hello,
I used telerik:ReportViewer control in my application which is developed by C# and WPF. It works well on my own computer(Windows 10), but it crashed immediately when it runs in win7.
The detail info of my develop environment: Window 10 Pro (Version 1903)、 Visual Studio 2019
The detail info of my project:Telerik_UI_for_WPF_2019_1_116、Telerik_Reporting_R1_2019_13_0_19_116、.NET Framework 4.5
The detail info of my test environment: Window 7 Enterprise (x64, SP1), .NET Framework 4.5.2 DevPack (I also tried 4.5.2 Full Version, still crashed)
The source code of my project is shown below. In order to find the cause of issue, there is only a report viewer control left.
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Button
Content
=
"show report viewer"
Click
=
"Button_Click"
/>
<
telerikReport:ReportViewer
x:Name
=
"ReportViewer"
Grid.Row
=
"1"
Visibility
=
"Collapsed"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
/>
</
Grid
>
private
void
Button_Click(
object
sender, RoutedEventArgs e)
{
this
.ReportViewer.Visibility = Visibility.Visible;
}
Here is the error info when it crashed in win7(after i click the button):
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: TelerikProject2001.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: ecb2db42
Problem Signature 04: PresentationCore
Problem Signature 05: 4.0.30319.34209
Problem Signature 06: 5348b56b
Problem Signature 07: 11b
Problem Signature 08: 2d
Problem Signature 09: System.Windows.Markup.XamlParse
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Then I used DispatcherUnhandledException in my code to catch the exception, and find a XamlParseException was throwed in reportviewer control. The detail info of this exception is too lang. So i attach the exception image at the end.
My application works well in win7 when i use telerik report 2014Q1. Not long ago, i upgraded it to 2019Q1, and then it crashed like that.
Hope for your advise. Thanks.