How to add to ASPX Page (Config Error)

5 posts, 1 answers
  1. bradley baker
    bradley baker avatar
    97 posts
    Member since:
    Aug 2009

    Posted 14 Dec 2009 Link to this post

    I have a website created in one project then I created another project to test out the telerik report.  Each one is in their own directory and each works by themselves.  So now I want to add the report into a reportviewer on the webpage so here is what I do.

    Open the website.
    Add a reference
    Browse to the bin/release (rpt_name.dll)
    Press ok.
    On the webapge I add a report viewer
    Select the report I want it to show (It does show up in the drop down listing)
    Build/publish the website (No compile errors)

    Goto the webpage to view it and I get this.
    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.Reporting, Version=3.2.9.1211, Culture=neutralPublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified.  
     
    Source Error:   
     
     
    Line 61:                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
    Line 62:                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>  
    Line 63:                <add assembly="Telerik.Reporting, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>  
    Line 64:                <add assembly="Telerik.ReportViewer.WebForms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/></assemblies> 
    Line 65:        </compilation> 
       
     
  2. Answer
    Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 16 Dec 2009 Link to this post

    Hi bradley baker,

    I guess that the problem will be solved when you set the Copy Local flag of the Reporting assemblies references to true. The Publish functionality does not deploy assemblies which are in the GAC on the development machine so they will be missing on the server. For more information you can take a look at the Deploying Telerik Reporting in Production KB article.


    Best wishes,
    Chavdar
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Jonathan
    Jonathan avatar
    57 posts
    Member since:
    Jun 2012

    Posted 16 Dec 2009 Link to this post

    I am having the same issue and setting copy local = true doesn't work for me.
  5. Jonathan
    Jonathan avatar
    57 posts
    Member since:
    Jun 2012

    Posted 16 Dec 2009 Link to this post

    Ok I found the problem. You need to add the PublicKeyToken to the Telerik.Reporting assembly. It is the same as the Telerik.ReportViewer.WebForms so it should look like this:

    <add assembly="Telerik.ReportViewer.WebForms, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/> 
    <add assembly="Telerik.Reporting, Version=3.2.9.1211, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/> 

  6. bradley baker
    bradley baker avatar
    97 posts
    Member since:
    Aug 2009

    Posted 16 Dec 2009 Link to this post

    I just put the dll's in the bin folder and everything worked for me.
Back to Top
DevCraft banner