Could not load file or assembly telerik.reporting 4.1.10.714

4 posts, 0 answers
  1. David
    David avatar
    7 posts
    Member since:
    Nov 2012

    Posted 30 Apr 2015 Link to this post

    I'm using Telerik Reporting Q3 2014............I do not know why inside my aspx file says: "could not load file or assembly telerik.reporting 4.1.10.714"?.....even so the application works properly..........How can I remove that error ??

    Thanks!

     

    My WebConfig is:

    <?xml version="1.0"?>
    <!--
    Nota: en lugar de editar manualmente este archivo, puede usar la
    herramienta Administración de sitios web para configurar las opciones de su aplicación. Use
    la opción Sitio web->Configuración de Asp.Net en Visual Studio.
    Encontrará la lista completa de opciones y comentarios en
    machine.config.comments ubicado normalmente en
    \Windows\Microsoft.Net\Framework\vx.x\Config
    -->
    <configuration>
    <appSettings/>
    <connectionStrings>
    <remove name="connCIC"/>
    <add name="connCIC" connectionString="Data Source=CJFDESARROLLO;Initial Catalog=CIC_net;Persist Security Info=True;User ID=usrCIC;Password=316146" providerName="System.Data.SqlClient"/>
    <!-- <add name="connCIC" connectionString="Data Source=CJFDATASTORE;Initial Catalog=CIC_net;Persist Security Info=True;User ID=usrCIC_Net;Password=usrR3m0t3Cnx; Min Pool Size=5; Max Pool Size=400;" providerName="System.Data.SqlClient"/>-->
    </connectionStrings>
    <!--
    Para obtener una descripción de los cambios de web.config, vea http://go.microsoft.com/fwlink/?LinkId=235367.

    Los siguientes atributos se pueden establecer en la etiqueta <httpRuntime>.
    <system.Web>
    <httpRuntime targetFramework="4.5.1" />
    </system.Web>
    -->
    <system.web>
    <httpHandlers>
    <add verb="*" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=8.2.14.1027, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
    </httpHandlers>
    <httpRuntime executionTimeout="3600" maxRequestLength="2097151" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
    <!--
    Establezca debug="true" en la compilación para insertar símbolos
    de depuración en la página compilada. Dado que este
    proceso afecta al rendimiento, debe establecer este valor como true
    durante la depuración.
    -->
    <compilation debug="true" defaultLanguage="c#" targetFramework="4.5.1">
    <assemblies>
    <add assembly="Telerik.Reporting, Version=8.2.14.1027, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
    </assemblies>
    </compilation>
    <!--
    La sección <authentication> habilita la configuración
    del modo de autenticación de seguridad que usa
    ASP.NET para identificar a un usuario entrante.
    -->
    <authentication mode="Forms">
    <forms protection="All" defaultUrl="inicio.aspx" loginUrl="login.aspx" requireSSL="true" timeout="120" path="/"/>
    </authentication>
    <authorization>
    <deny users="?"/>
    </authorization>
    <!--
    La sección <customErrors> habilita la configuración de
    las acciones que se deben realizar si un error no controlado tiene lugar
    durante la ejecución de una solicitud. En concreto,
    permite a los desarrolladores configurar páginas de error html
    que se mostrarán en lugar de un seguimiento de pila de errores.

    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
    <error statusCode="403" redirect="NoAccess.htm" />
    <error statusCode="404" redirect="FileNotFound.htm" />
    </customErrors>
    -->
    <customErrors defaultRedirect="error.aspx" mode="Off">
    <error statusCode="401" redirect="unauthorized.aspx"/>
    </customErrors>
    <sessionState cookieless="AutoDetect" timeout="120"/>
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
    </system.web>
    <system.webServer>
    <security>
    <requestFiltering>
    <!--This will handle requests up to 1024MB (1GB) -->
    <requestLimits maxAllowedContentLength="1048576000"/>
    </requestFiltering>
    </security>
    <defaultDocument>
    <files>
    <add value="inicio.aspx"/>
    </files>
    </defaultDocument>
    </system.webServer>
    <location path="olvidoPassword.aspx">
    <system.web>
    <authorization>
    <allow users="*"/>
    </authorization>
    </system.web>
    </location>
    </configuration>

     

    The ASPX file is:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="REPobligaciones.aspx.cs" Inherits="REPobligaciones" %>
    <%@ Register TagPrefix="headerInicio" TagName="header" Src="include/headerInicioV.ascx" %>
    <%@ Register assembly="Telerik.ReportViewer.WebForms, Version=8.2.14.1027, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html>
    <head id="Head1" runat="server">
    <title>TecnoVisita</title>
    </head>
    <headerInicio:header ID="Header" runat="server"/>
    <body>
    <form id="form1" runat="server">
    <div>
    <telerik:ReportViewer ID="ReportViewer1" runat="server" BackColor="White"
    Height="600px" Width="70%">
    </telerik:ReportViewer>
    </div>
    </form>
    </body>
    </html>

     

     And.......its Code is:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public partial class REPobligaciones : System.Web.UI.Page
    {
    protected void Page_Load(object sender, EventArgs e)
    {
    Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
    // Specifying an URL or a file path
    uriReportSource.Uri = Server.MapPath("reportes/WEBrepObligaciones.trdx");
    // Adding the initial parameter values
    uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("fiIdConcurso", Page.Session["fiIdConcurso"]));
    uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("fcDesComerciante", Page.Session["fcDesComerciante"]));
    ReportViewer1.ReportSource = uriReportSource;
    }
    }

     

  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 01 May 2015 Link to this post

    Hello David,

    In the provided configuration file I cannot see Telerik.ReportViewer.axd handlers registrations in both system.web and system.webServer sections. Please compare your settings to these in How to: Add report viewer to a web page. If needed run the Upgrade Wizard in all projects having references to Telerik Reporting.

    In addition check the deployed files and the Bin folder for an older assembly of Telerik Reporting (check the files properties and if any is of version 4.1.10.714 - the specified in the error).

    Regards,
    Stef
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. David
    David avatar
    7 posts
    Member since:
    Nov 2012

    Posted 01 May 2015 in reply to Stef Link to this post

    Hello...thanks for your information.....I already added in my Webconfig file the next reference in the "<system.webServer>"  section:

    <handlers>
    <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=x.x.x.x, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode"/>
    </handlers>

    But the problem persist......to try the second sugestion.....where may I find o download the "older assembly of Telerik Reporting (version 4.1.10.714)"............to put it on my bin folder?

     Thanks!...........please help?

     

    PD. is there any way telerik develop components that are self-contained ? .... ie .... that you do not have to be adding things from elsewhere to work?.... it is just an idea....because it is very common these kind of problems

  4. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 06 May 2015 Link to this post

    Hello David,

    If you are using a greater version of Telerik Reporting than 4.1.10.714, you should not add the older assembly in the project's Bin folder.

    Instead clear the Bin folder content and re-add all Telerik Reporting assemblies (Deploying Web Applications). Then run the Upgrade Wizard in all projects having references to Telerik Reporting (reports and viewers' projects) to verify they are using the same version. On adding a reference to an assembly set its CopyLocal to true in VS.

    When you check the settings of the viewer, make sure the X.X.X.X from the examples are substituted with the actual version of the referenced Telerik Reporting assemblies.


    On a side note, adding the viewer per How to: Add report viewer to a web page, will add automatically references and configurations in the project. Still in your case the issue is related to loading an old assembly left in the project's bin folder or a reference to it.

    Regards,
    Stef
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top