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

How to add to ASPX Page (Config Error)

4 Answers 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bradley baker
Top achievements
Rank 1
bradley baker asked on 14 Dec 2009, 05:00 PM
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> 
   
 

4 Answers, 1 is accepted

Sort by
0
Accepted
Chavdar
Telerik team
answered on 16 Dec 2009, 04:43 PM
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.
0
Jonathan
Top achievements
Rank 1
answered on 16 Dec 2009, 07:07 PM
I am having the same issue and setting copy local = true doesn't work for me.
0
Jonathan
Top achievements
Rank 1
answered on 16 Dec 2009, 07:16 PM
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"/> 

0
bradley baker
Top achievements
Rank 1
answered on 16 Dec 2009, 07:38 PM
I just put the dll's in the bin folder and everything worked for me.
Tags
General Discussions
Asked by
bradley baker
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Jonathan
Top achievements
Rank 1
bradley baker
Top achievements
Rank 1
Share this question
or