This is a migrated thread and some comments may be shown as answers.

WPF Reportviewer crashes in win7 (throw XamlParseException)

2 Answers 170 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jacory
Top achievements
Rank 1
Jacory asked on 25 Mar 2020, 10:56 AM

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.

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 30 Mar 2020, 07:27 AM

Hello Jacory,

Our WPF Report Viewer is built with Telerik UI for WPF controls and the described issue seems related to the problem discussed in the RadGlyph FileFormatException forum thread. The problem may due to a bug in Windows 7 SP1. You may check the referenced post for workarounds.

Regards,
Todor
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Jacory
Top achievements
Rank 1
answered on 03 Apr 2020, 07:30 AM

Hello Todor,

Thanks for you reply. I have made some other findings this morning.

Firstly, talk about what i found. The window update package KB2670838 can make the telerik report viewer work well in Win7 SP1.

Originally I wanted to install vs2013 in my win7 PC, to do a detailed test with my source code. But the VS2013 requires that the IE10 should be installed first.  So i  installed IE11 on my PC. And then without VS2013's installation, my application can run well.

Later i install ie11 on another win7 PC with ie11 offline installer. This installer requires 6 windows update packages installed first. And the i found my application runs well only with these update packages installed.

After some other test , i found KB2670838 is the key.

 

Reference:

https://support.microsoft.com/en-us/help/2847882/prerequisite-updates-for-internet-explorer-11

https://support.microsoft.com/en-us/help/2670838/platform-update-for-windows-7-sp1-and-windows-server-2008-r2-sp1

 

Best regards,
Jacory

 

 

Tags
General Discussions
Asked by
Jacory
Top achievements
Rank 1
Answers by
Todor
Telerik team
Jacory
Top achievements
Rank 1
Share this question
or