This is a migrated thread and some comments may be shown as answers.
IIS and Reporting
7 Answers 319 Views
This is a migrated thread and some comments may be shown as answers.
rgf21
Top achievements
Rank 1
rgf21 asked on 04 Jun 2007, 02:43 PM

Hi, when I publish my site I get this error:

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=1.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. O sistema não conseguiu localizar o ficheiro especificado.

Source Error:

Line 53: 				<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 54: 				<add assembly="Telerik.Reporting.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
Line 55: 				<add assembly="Telerik.Reporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
Line 56: 				<add assembly="Telerik.Reporting.Processing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/></assemblies>
Line 57: 		</compilation>

Source File: C:\dados\Giscon\site\proform\web.config    Line: 55

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Reporting, Version=1.0.0.0, 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.42; ASP.NET Version:2.0.50727.210

In Visual Studio everything works fine. Any help?

7 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 05 Jun 2007, 12:47 PM
Hello rgf21,

It seems that the Web Site cannot find the Telerik.Reporting.dll on your production server. The installation process puts this assembly in the GAC of the target machine and when deploying your application to another machine you should put this assembly in the application's BIN folder. You can get if from the Telerik Reporting 1.0 Bin folder (usually C:\Program Files\Telerik\Reporting 1.0\Bin).

One important thing got our attention - you're using the v1.0 of the Telerik Reporting (Telerik.Reporting, Version=1.0.0.0). We strongly recommend you to uninstall it and install the SP1 aka v1.1 which fixes several major issues at design and runtime.
 

Regards,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rgf21
Top achievements
Rank 1
answered on 05 Jun 2007, 03:35 PM
Installing SP1 solved my problems. Now I have another question. Why can't I export? The combobox have only the "Select export format".

Thanks
0
Vassil Petev
Telerik team
answered on 05 Jun 2007, 04:42 PM
Hello rgf21,

Please review the provided documentation on Exporting in section Creating Report Items --> Exporting a report. Here is the link to the topic: ms-help://telerik.reporting/Reporting/ProgrammaticExportingAReport.html

Let us know if you have further questions.
 

Sincerely yours,
Rob
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rgf21
Top achievements
Rank 1
answered on 06 Jun 2007, 09:01 AM
Hi, I will try that soon, but now I have another problem. When I load my visual studio project I get an error in Design mode: "Error Creating Control...
Cannot create an object of type 'Telerik.Reporting.Report' from its string representation 'FichaFormando, App_Code.8aysttkk, Version=0.0.0.0, Culture=neutral, PublickToken=null' for the 'Report' property.
I have to delete the control and add it again from the toolbox to make it render fine but when I restart the project it happens again..
0
Svetoslav
Telerik team
answered on 06 Jun 2007, 02:24 PM
Hello rgf21,

We need some more information about this error. Please open a separate support ticket and send us your report or even better, the whole project - it seems you're developing a Web Site but we are not sure.

What control you're using from the toolbox?

Have you ever made any changes in your report's InitializeComponent() by hand? If yes, keep in mind that you're not allowed to do this because the content of this method is managed by Visual Studio.

Another thing you can try is to delete the report's RESX file and reopen the the report designer.
 

Kind regards,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
madkins
Top achievements
Rank 1
answered on 30 Aug 2007, 07:29 PM
Was there ever a resolution to this? I am having the same error.
0
Chavdar
Telerik team
answered on 31 Aug 2007, 12:22 PM
Hi madkins,

This problem is related to the Web Site project. When you select a report for the Report property of the viewer through the Properties window it serializes its fully qualified name. However, on every rebuild of the Web Site, the code from App_Code folder where actually the reports are is compiled in an assembly with a random name (e.g. App_Code.8aysttkk). In this way the information for the Report property becomes obsolete.

To solve the problem there are two approaches:

1. Initialize the Report property of the viewer in code-behind of the page. For example:

   ReportViewer1.Report = new MyReport()

2. Move the reports to a separate class library. Reference it from the Web Site and again set the Report property of the viewr through the Properties window. In this case, however, the referenced assembly name will remain constant and the error will not appear.

Hope this helps.

Regards,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Asked by
rgf21
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
rgf21
Top achievements
Rank 1
Vassil Petev
Telerik team
madkins
Top achievements
Rank 1
Chavdar
Telerik team
Share this question
or