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

Could not load assembly Telerik.Reporting

6 Answers 907 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
paulSC
Top achievements
Rank 1
paulSC asked on 03 Oct 2008, 05:57 PM
I am getting the following error when I build (asp.net 2.0). Has anyone ran into this? I don't have version 1.0.0.0 so I'm not sure why it's looking for that version. Thanks for any help.

Could not load file or assembly 'Telerik.Reporting, Version=1.0.0.0,
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)

I uninstalled the telerik reporting exe and installed it again. Removed the reference and added it again but it still doesn't work. I have the 1.1.0.0 version of Reporting.


6 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 06 Oct 2008, 09:14 AM
I'm having this issue too. Strangely, if I create a new project from scratch it initially works OK until I close VS and reopen the project again.$0$0$0$0Anybody got any ideas???$0$0$0$0$0Luke$0$0$0$0$0
0
Steve
Telerik team
answered on 06 Oct 2008, 09:45 AM
Hi guys,

Paul: Please download and install the latest official version we just released last week. Numerous features, improvements and bug fixes have been implemented since v.1.x.x.x and since you do not have license (i.e. you're not bound to use exactly 1.x.x.x) we highly recommend always using the latest version of our Reporting offering.

Michael: We see that you're using the latest version. If you have multiple versions of Telerik Reporting installed side by side, please verify that you create v.2.x.x.x Report in VS and that you use Reporting items from the toolbox that correspond to the Report version you use. If you do not need the obsolete versions, you can go ahead and uninstall them to avoid further confusion.

All the best,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
paulSC
Top achievements
Rank 1
answered on 06 Oct 2008, 07:42 PM
Ignore this post. Sorry.
0
Michael
Top achievements
Rank 1
answered on 09 Oct 2008, 10:55 AM
Hi Steve

Thanks for the reply. I'm still having a problem with this. The only version of Telerik Reporting appearing in the Add/Remove Programs list is the latest version (Q2 2008 SP2). I don't have any others installed. I've created a dummy project to try and understand this better. When I reload this project and return to the page which has the reportviewer on it I get this error: -

Cannot create an object of type 'Teleik.Reporting.Report' from its string representation 'Report1,App_Code.unch8s_n, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' for the 'Report' property.

Any help much appreciated!

Michael

0
Steve
Telerik team
answered on 09 Oct 2008, 11:41 AM
Hello Michael,

This is due to the fact that when using website, after rebuild the following would always be different and it does not match with the originally assigned report: App_Code.unch8s_n. That is why we recommend following our best practices and have the report in a separate code library that is referenced in the web app/site.
The most reliable way to specify a report for the viewer is to do this programmatically on the Page_Load event of the page. For example:

protected void Page_Load(object sender, EventArgs e)
{
   if (!Page.IsPostBack)
  {
     this.ReportViewer.Report = new MyReport();
  }
}


Let us know if further help is needed.




Regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 1
answered on 09 Oct 2008, 12:03 PM
I understand. Works fine now!

Thanks for your help,
Michael

Tags
General Discussions
Asked by
paulSC
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Steve
Telerik team
paulSC
Top achievements
Rank 1
Share this question
or