Artur Löwen
Top achievements
Rank 1
Artur Löwen
asked on 24 Nov 2010, 12:13 PM
When trying to view the preview of my report in the Telerik-ReportViewer-Control in my application running NOT on my development machine I get the following error message:
"ExtensionParamter Unit on extension type Telerik.Reporting.ExcelRendering.Excel97.ExcelReport, Telerik.Reporting, Version=4.2.10.1110, Culture=neutral, PublickeyTogen=a0d7983dfcc261be can not assign the specific value.
pt is not a valid value for UnitType
Requested value 'pt' was not found."
This message only appears, if the application is not running on the development machine and the report contains data.
If the data-set is empty the report-header is shown.
Both machines (development and test) are running win7 64.
What could be the problem?
"ExtensionParamter Unit on extension type Telerik.Reporting.ExcelRendering.Excel97.ExcelReport, Telerik.Reporting, Version=4.2.10.1110, Culture=neutral, PublickeyTogen=a0d7983dfcc261be can not assign the specific value.
pt is not a valid value for UnitType
Requested value 'pt' was not found."
This message only appears, if the application is not running on the development machine and the report contains data.
If the data-set is empty the report-header is shown.
Both machines (development and test) are running win7 64.
What could be the problem?
10 Answers, 1 is accepted
0
Hello Artur,
The error you've encountered means that you have a rendering extension setting in the Telerik Reporting config section in your application config file and it is not valid. More information on configuring the rendering extensions is available in the following articles:
Regards,
Steve
the Telerik team
The error you've encountered means that you have a rendering extension setting in the Telerik Reporting config section in your application config file and it is not valid. More information on configuring the rendering extensions is available in the following articles:
Regards,
Steve
the Telerik team
0
masoud
Top achievements
Rank 1
answered on 27 Dec 2010, 04:30 PM
Hi
I have the same problem and add this code to app.config:
<section name="Telerik.Reporting" type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting, Version=x.x.x.x, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere"/>it didn't work.... what should I do?
0
Hi masoud,
As we've stated in previous post, this error has occurred when you have invalid rendering extension registration in your application config file. If you do not have Telerik Reporting section in the config file, but still receive this error please first make sure you're using the latest version of the product (Q3 SP1). If the problem persists, please open a support ticket and attach a sample project that exhibits the error with steps to reproduce.
Kind regards,
Steve
the Telerik team
As we've stated in previous post, this error has occurred when you have invalid rendering extension registration in your application config file. If you do not have Telerik Reporting section in the config file, but still receive this error please first make sure you're using the latest version of the product (Q3 SP1). If the problem persists, please open a support ticket and attach a sample project that exhibits the error with steps to reproduce.
Kind regards,
Steve
the Telerik team
0
masoud
Top achievements
Rank 1
answered on 29 Dec 2010, 09:05 PM
This is my app.config content:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section
name="Telerik.Reporting"
type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting, Version=x.x.x.x,
Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
allowLocation="true"
allowDefinition="Everywhere"/>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="CustomToolbar.Settings1" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser"
requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<CustomToolbar.Settings1>
<setting name="frmDetailOpen" serializeAs="String">
<value>0</value>
</setting>
<setting name="frmGetLastStatus" serializeAs="String">
<value>0</value>
</setting>
<setting name="Layer" serializeAs="String">
<value />
</setting>
</CustomToolbar.Settings1>
</userSettings>
</configuration>
did I add Configuration right?
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section
name="Telerik.Reporting"
type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting, Version=x.x.x.x,
Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
allowLocation="true"
allowDefinition="Everywhere"/>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="CustomToolbar.Settings1" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser"
requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<CustomToolbar.Settings1>
<setting name="frmDetailOpen" serializeAs="String">
<value>0</value>
</setting>
<setting name="frmGetLastStatus" serializeAs="String">
<value>0</value>
</setting>
<setting name="Layer" serializeAs="String">
<value />
</setting>
</CustomToolbar.Settings1>
</userSettings>
</configuration>
did I add Configuration right?
0
Hi masoud,
It seems you've not read my previous reply carefully, so I would repeat it once again - you do not need to add Telerik Reporting config section to your application config file unless you plan to change any of the rendering formats' settings which as seen from the pasted file, you're not doing.
Moreover the registration is not correct since you have to change the Version attribute which is currently (x.x.x.x) to the exact reporting version you're using.
Best wishes,
Steve
the Telerik team
It seems you've not read my previous reply carefully, so I would repeat it once again - you do not need to add Telerik Reporting config section to your application config file unless you plan to change any of the rendering formats' settings which as seen from the pasted file, you're not doing.
Moreover the registration is not correct since you have to change the Version attribute which is currently (x.x.x.x) to the exact reporting version you're using.
Best wishes,
Steve
the Telerik team
0
Artur Löwen
Top achievements
Rank 1
answered on 03 Jan 2011, 08:57 AM
In my case the problem was the assembly location. My own assembly (the one which references the telerik assemblies) was loaded as a plugin-assembly and was in a folder different from the application executable. I solved the problem by implementing the AppDomain.AssemblyResolve event which loads the assembly from my own assembly folder.
The .NET-Framework is able to load my own sub-assemblies from the same folder but is trying to load other 3rd-party-assemblies (like Telerik) from the application folder.
Hopefully this points you in the right direction.
The .NET-Framework is able to load my own sub-assemblies from the same folder but is trying to load other 3rd-party-assemblies (like Telerik) from the application folder.
Hopefully this points you in the right direction.
0
Jeremi
Top achievements
Rank 1
answered on 13 Aug 2012, 11:32 AM
Hi Telerik
After all this time I am encountering the same problem as in 2010 reported.
After a serious long exception message, it boils down to the same error.
I am generating a report in PDF format which works perfectly on the development machine but fails on the deployment machine.
I do not have config files for the exe and I cannot easily find an example showing how the newer version is done programmatically.
I created a report in a component and I created a dll. I then call this from a general engine after specifying some parameters.
I include the c# which work on one machine but not on the next.
I refered to the pages mentioned by Steve and I cannot find any reference to 'pt' or valid types for 'PDF', please assist .
Regards
Archi (from Payteq)
LoadReport myReport = new LoadReport(m_LoadItems, SavedUserCode, TheFileName, repTots.pTotDebits.ToString(),
repTots.pTotCredits.ToString(), repTots.pDebits.ToString(), repTots.pCredits.ToString());
// call Render() and retrieve raw array of bytes
ReportProcessor theProcessor = new ReportProcessor();
System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = myReport;
RenderingResult theResult = theProcessor.RenderReport("PDF", instanceReportSource, deviceInfo);
byte[] buffer = theResult.DocumentBytes;
After all this time I am encountering the same problem as in 2010 reported.
After a serious long exception message, it boils down to the same error.
I am generating a report in PDF format which works perfectly on the development machine but fails on the deployment machine.
I do not have config files for the exe and I cannot easily find an example showing how the newer version is done programmatically.
I created a report in a component and I created a dll. I then call this from a general engine after specifying some parameters.
I include the c# which work on one machine but not on the next.
I refered to the pages mentioned by Steve and I cannot find any reference to 'pt' or valid types for 'PDF', please assist .
Regards
Archi (from Payteq)
LoadReport myReport = new LoadReport(m_LoadItems, SavedUserCode, TheFileName, repTots.pTotDebits.ToString(),
repTots.pTotCredits.ToString(), repTots.pDebits.ToString(), repTots.pCredits.ToString());
// call Render() and retrieve raw array of bytes
ReportProcessor theProcessor = new ReportProcessor();
System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = myReport;
RenderingResult theResult = theProcessor.RenderReport("PDF", instanceReportSource, deviceInfo);
byte[] buffer = theResult.DocumentBytes;
0
Jeremi
Top achievements
Rank 1
answered on 14 Aug 2012, 01:16 PM
Hi Telerik
any answer ?
any answer ?
0
Hello Jeremi,
Peter
the Telerik team
Based on the provided information we are not sure what is causing the exception. Thus we will appreciate if you open a support thread and send us sample project that throws the exception to debug on our end.
Regards,Peter
the Telerik team
BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >
0
Jeremi
Top achievements
Rank 1
answered on 21 Aug 2012, 12:19 PM
The first post is the exact same problem we are having... Please if you are gonna refer me to the articles then please highlight the section you would edit to fix this issue....
Only saying "The error you've encountered means that you have a rendering extension setting in the Telerik Reporting config section in your application config file and it is not valid. More information on configuring the rendering extensions is available in the following articles", doesn't say more than "you do not have a correct setting in the config" and then referring to articles seems just counter productive. The error refers to 'pt' which could mean that within some sort of conversion from entered value to visual measurement there seems to be an issue. This issue only occurs for some reason when you are not working with a development environment. I will create a support thread too directly after this post.
Please could you help.
Thanks
Only saying "The error you've encountered means that you have a rendering extension setting in the Telerik Reporting config section in your application config file and it is not valid. More information on configuring the rendering extensions is available in the following articles", doesn't say more than "you do not have a correct setting in the config" and then referring to articles seems just counter productive. The error refers to 'pt' which could mean that within some sort of conversion from entered value to visual measurement there seems to be an issue. This issue only occurs for some reason when you are not working with a development environment. I will create a support thread too directly after this post.
Please could you help.
Thanks