Web ReportViewer Error

9 posts, 0 answers
  1. Philip
    Philip avatar
    70 posts
    Member since:
    Apr 2008

    Posted 15 Feb 2010 Link to this post

    I am trying to publish my first Telerik Report to the web. I can display the report when I run it in my development environment. However, when I publish it, I get the following error. (The first error I got told me to insert this     

    <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
    Line 48: </httpHandlers>
    Line 49: <httpModules> ,

    and then it says it cant find it.) If I delete it, it tells me to insert it. If I insert it, it says it cant find it. Any ideas?



    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'Telerik.ReportViewer.WebForms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 45: 			<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false"/>
    Line 46: 			<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2009.2.1007.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
    Line 47: <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />Line 48: 		</httpHandlers>
    Line 49: 		<httpModules>

    Source File: E:\readinessandsustainmentwebsite\ActiveWebPages\MPFMods\web.config    Line: 47

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.ReportViewer.WebForms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 16 Feb 2010 Link to this post

    Hello Philip,

    The original warning you receive explains that you should register the handler for the web report viewer in the httphandlers section in the web config. However if you're hosting the application in IIS7, there is a different section to add the handler to, namely the <system.webServer>\<handlers> section:

    <system.webServer>  
        <handlers>  
           <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode,runtimeVersionv2.0"   />  
        </handlers>  
        <validation validateIntegratedModeConfiguration="false" />    
    </system.webServer>

    Generally you should not have to make these modifications manually since adding a report viewer to your web site/app automatically adds the necessary registration. The problem in your case is probably due to the fact that you have not uploaded your entire project to the server, otherwise the web.config from your project would have those registrations present. You can copy that web.config and see if that makes a difference, just in case I have attached a working web.config for your convenience.
    As for the second error - it clearly states that it cannot find a necessary assembly you're referencing. During the installation of Telerik Reporting on your machine, the Telerik assemblies were added to GAC. When deploying a Web Site project the assemblies from the GAC are not copied automatically, so you need to copy the assemblies manually from the installation’s Telerik Reporting /bin folder to the bin folder of your application on the server. Full step by step instructions on deploying are included in the Deploying Applications using Telerik Reporting help article.

    All the best,
    Steve
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Deepa Balasundaram
    Deepa Balasundaram avatar
    34 posts
    Member since:
    Jul 2009

    Posted 25 Jun 2010 Link to this post

    Hello

    When I tried to deploy one of my websites I got the following error message. But I have included all the necessary dll files in the assembly section of the web config file. I have also included the handlers in the appropriate section of the web config file. What else should I do to resolve this error message?

    Thanks,
    Deepa

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'Telerik.Reporting, Version=4.0.10.423, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The module was expected to contain an assembly manifest.

    Source Error:

     

    Line 280:        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

    Line 281:        <add assembly="System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

    Line 282:                     <add assembly="Telerik.Reporting, Version=4.0.10.423, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>

    Line 283:                     <add assembly="Telerik.ReportViewer.WebForms, Version=4.0.10.423, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

    Line 284:                     <!--<add assembly="Telerik.Reporting.Service, Version=4.0.10.423, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>-->

  4. Philip
    Philip avatar
    70 posts
    Member since:
    Apr 2008

    Posted 25 Jun 2010 Link to this post

    When I had the same issue, I had not loaded the Telerik Reporting on the Server that I was deploying the application to. Once I loaded TR on the server, it registered the items in the GAC and my issue was resolved. I had the software loaded on the development machine, but not the server.

    Hope this helps.
  5. Deepa Balasundaram
    Deepa Balasundaram avatar
    34 posts
    Member since:
    Jul 2009

    Posted 25 Jun 2010 Link to this post

    Hello Philip,

    Thanks for the quick response. I will try that.

    Deepa
  6. Dhruv
    Dhruv avatar
    1 posts
    Member since:
    Jun 2011

    Posted 02 Jun 2011 Link to this post

    Hi Steve,

    I am trying to deal with the same error as Philip:

    Error 1 Could not load file or assembly 'Telerik.ReportViewer.WebForms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified. C:\Documents and Settings\AC35433\My Documents\AAData\Web.config 35 

    I already have registered the handler for the web report viewer in the httphandlers section in the web config.:


     

     

    <

     

    system.webServer

    <validation validateIntegratedModeConfiguration="false"/>  

     

     

    <

     

    modules>

     

    <

     

    remove name="ScriptModule"/> 

     

     

    <

     

    add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

     

    </

     

    modules>

     

    <handlers>

    <

     

    remove name="WebServiceHandlerFactory-Integrated"/>

     

    <

     

    remove name="ScriptHandlerFactory"/> 

     

     

    <

     

    remove name="ScriptHandlerFactoryAppServices"/>

     

    <

     

    remove name="ScriptResource" />

    <
    add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

    <
    add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

     

    <

     

    add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

     

    <

     

    add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>

     


    <
    add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler"/> 
      

    <

     

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

     

    </

     

    handlers>

     

     </

     

    system.webServer>

     

     

     



    Please let me know what I am doing wrong??
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 02 Jun 2011 Link to this post

    Hi Dhruv,

    Philip has already provided insight as to what the problem is in his post from Jun 25, 2010, namely you have not deployed the project correctly. More info is available in the Deploying Web Site help article.

    All the best,
    Steve
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Navnit
    Navnit avatar
    19 posts
    Member since:
    Jan 2011

    Posted 20 Jul 2011 Link to this post

    Hi,

    The Telerik Team clearly tells you to "copy the assemblies manually from the installation’s Telerik Reporting /bin folder to the bin folder of your application on the server"

    To automate this process, under your project Reference, right click on Telerik.ReportViewer.WebForms and click Properties. Make sure that the Copy Local property is set to True. And do the same for the Telerik.Reporting reference.

    It's quite handy!

    Navnit
  9. Marcus
    Marcus avatar
    2 posts
    Member since:
    Sep 2014

    Posted 31 Oct 2014 in reply to Navnit Link to this post

    I try this and this solve the problem. 
    Tanks
Back to Top