Application crashes after telerik update

2 posts, 0 answers
  1. Alexander
    Alexander avatar
    22 posts
    Member since:
    May 2016

    Posted 26 Sep Link to this post

    Our application uses Telerik reportviewer to priview  Reports  before export reports to pdf or print it. After update from privious version telerik our Applicatoin crashes during Creating ReportViewer with

    System.TypeInitializationException

    The type initializer for 'Telerik.Reporting.Processing.RenderingExtensionManager' threw an exception.

    here is an Stacktrace:

      at Telerik.Reporting.Processing.RenderingExtensionManager.get_RenderingExtensions()
       at Telerik.ReportViewer.Wpf.ReportViewerModel.GetRenderingExtensions()
       at Telerik.ReportViewer.Wpf.ReportViewerModel..ctor(Size pageViewportSize, Dispatcher dispatcher)
       at Telerik.ReportViewer.Wpf.ReportViewer.CreateModel()
       at Telerik.ReportViewer.Wpf.ReportViewer.Initialize()
       at System.Windows.FrameworkElement.ApplyTemplate()
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.Controls.TabItem.OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

    with inner Exception: System.Configuration.ConfigurationErrorException

    An error occurred creating the configuration section handler for Telerik.Reporting: Could not load file or assembly 'Telerik.Reporting, Version=10.2.16.614, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

       at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
       at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
       at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
       at System.Configuration.ConfigurationManager.GetSection(String sectionName)
       at Telerik.Reporting.Configuration.ReportingConfiguration.get_Current()
       at Telerik.Reporting.Processing.RenderingExtensionManager..cctor()

     

    I checked the assembys lying in Application order. the versions seem to be as it written in App section

    <section name="Telerik.Reporting" type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=10.2.16.614, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere" />

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Telerik.Windows.Controls" publicKeyToken="5803cfa389c90ce7" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-2016.2.613.40" newVersion="2016.3.914.45" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="DocumentFormat.OpenXml" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-2.5.5631.0" newVersion="2.5.5631.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Telerik.Windows.Controls" culture="neutral" publicKeyToken="5803cfa389c90ce7" />
            <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="2016.3.914.45" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Telerik.Windows.Controls.Input" culture="neutral" publicKeyToken="5803cfa389c90ce7" />
            <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="2016.3.914.45" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Telerik.Windows.Controls.Navigation" culture="neutral" publicKeyToken="5803cfa389c90ce7" />
            <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="2016.3.914.45" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Telerik.Windows.Data" culture="neutral" publicKeyToken="5803cfa389c90ce7" />
            <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="2016.3.914.45" />
          </dependentAssembly>
        </assemblyBinding>

     

    We using some our intern assembly in trdp files . They are added in style

     <add name="intern.assembly" version="1.0.0.0" culture="neutral" publicKeyToken="null" />

    Have any one Idea what assembly are missing? Or ways to solve the problem.

  2. Alexander
    Alexander avatar
    22 posts
    Member since:
    May 2016

    Posted 26 Sep in reply to Alexander Link to this post

    It seems that one of assemblies was corrupt. Problem was solved with unistalling /installing  Telerik frameworks and resolving references.
  3. DevCraft banner
Back to Top