
Devin Zheng
Top achievements
Rank 1
Devin Zheng
asked on 05 Jan 2010, 07:33 PM
Hi,
I am using telerik.reporing in my apllication. It was working fine before. But in the morning a strange thing happened, when user clicked the report page, the system displayed an error message 'Parameter is not valid'. I am using telerik:reportviewer to view the report. There was nothing code changed in the server. I do not know what happen, Is there anything would cause this error for telerik report?
Thanks,
I am using telerik.reporing in my apllication. It was working fine before. But in the morning a strange thing happened, when user clicked the report page, the system displayed an error message 'Parameter is not valid'. I am using telerik:reportviewer to view the report. There was nothing code changed in the server. I do not know what happen, Is there anything would cause this error for telerik report?
Thanks,
8 Answers, 1 is accepted
0
Hello Devin,
Unfortunately the provided information is insufficient for us to determine what is causing the problem. Make sure you reload the page containing the report first, to assure that the session has not expired. Also did that happen a single time or is reproducible everytime on different machines? Any additional information would be highly appreciated.
All the best,
Steve
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.
Unfortunately the provided information is insufficient for us to determine what is causing the problem. Make sure you reload the page containing the report first, to assure that the session has not expired. Also did that happen a single time or is reproducible everytime on different machines? Any additional information would be highly appreciated.
All the best,
Steve
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

Devin Zheng
Top achievements
Rank 1
answered on 01 Jun 2010, 03:12 PM
Hi,
The error "Parameter is not valid" happened again yesterday. It was working fine before and I did not make any change. I am using TelerikReporting_Q2_2007_SP1. I have a logo image in the report. I think error happen when rad report render the image.
The following is stack trace:
Stack trace: at System.Drawing.Image.get_RawFormat()
at Telerik.Reporting.PictureBox.set_Value(Object value)
at LibrarySop.rptDepartment.InitializeComponent() in C:\MyFolder\LibrarySopNewAdd\rptDepartment.Designer.vb:line 77
at LibrarySop.rptDepartment..ctor() in C:\MyFolder\LibrarySopNewAdd\rptDepartment.vb:line 10
at ESop_webform_resportbyDepartment.btn_generate_Clickwhen r(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Thanks,
The error "Parameter is not valid" happened again yesterday. It was working fine before and I did not make any change. I am using TelerikReporting_Q2_2007_SP1. I have a logo image in the report. I think error happen when rad report render the image.
The following is stack trace:
Stack trace: at System.Drawing.Image.get_RawFormat()
at Telerik.Reporting.PictureBox.set_Value(Object value)
at LibrarySop.rptDepartment.InitializeComponent() in C:\MyFolder\LibrarySopNewAdd\rptDepartment.Designer.vb:line 77
at LibrarySop.rptDepartment..ctor() in C:\MyFolder\LibrarySopNewAdd\rptDepartment.vb:line 10
at ESop_webform_resportbyDepartment.btn_generate_Clickwhen r(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Thanks,
0
Hi Devin,
Telerik Reporting_Q2_2007 is almost 3 years old and we've made drastic changes to almost all aspects of the product. Providing support for such old version is not feasible, cause even if you've hit a problem, the chances are it has already been fixed. That is why, we highly recommend that you upgrade to our latest & greatest version following our release notes (quite a few breaking changes since then) and let us know how it goes.
Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Telerik Reporting_Q2_2007 is almost 3 years old and we've made drastic changes to almost all aspects of the product. Providing support for such old version is not feasible, cause even if you've hit a problem, the chances are it has already been fixed. That is why, we highly recommend that you upgrade to our latest & greatest version following our release notes (quite a few breaking changes since then) and let us know how it goes.
Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0

Devin Zheng
Top achievements
Rank 1
answered on 04 Jun 2010, 01:58 PM
Thank you for you respond.
My company bought TelerikReporting_Q2_2007_SP1 at the end of 2007. How can I get the new version, do I need to pay extra money for it, and how much.
Thanks
Devin
My company bought TelerikReporting_Q2_2007_SP1 at the end of 2007. How can I get the new version, do I need to pay extra money for it, and how much.
Thanks
Devin
0
Hi Devin,
I've went through the whole thread once again to make sure of all facts - if you state that your application has been working fine for some time, then something must have changed. If indeed the error is at fault, can you compare it with other images which work fine in the report? What is the image type - jpg, png, gif, bmp? There must be something specific to this image like bit depth or transparency compared to other that are working - please check that and modify image accordingly.
As for the upgrade, we've noticed that you have access to Telerik Reporting v.2008.3 1321 (Q3 2008), so if the above suggestions do not help, try upgrading and see if that makes a difference. If the problem still exists with that version, please provide us with a runnable report that exhibits the error and we would advise you accordingly.
Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I've went through the whole thread once again to make sure of all facts - if you state that your application has been working fine for some time, then something must have changed. If indeed the error is at fault, can you compare it with other images which work fine in the report? What is the image type - jpg, png, gif, bmp? There must be something specific to this image like bit depth or transparency compared to other that are working - please check that and modify image accordingly.
As for the upgrade, we've noticed that you have access to Telerik Reporting v.2008.3 1321 (Q3 2008), so if the above suggestions do not help, try upgrading and see if that makes a difference. If the problem still exists with that version, please provide us with a runnable report that exhibits the error and we would advise you accordingly.
Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0

Devin Zheng
Top achievements
Rank 1
answered on 08 Jun 2010, 04:27 PM
Hi Steve,
Thank you very much for your suggestions. After tried many times, I find if the report result is more than 80 pages, the system will throw 'out of memory' exception, after that exception happen, I will get 'Parameter is not valid' error when I try any other reports. So I think too many reprot result will cause the problem.
I want to split the whole report into many page groups, for example, if the report is 100 pages, I can split it into 10 groups, 1 group is 1-10 pages, 2 group is 10-20 group ..., so that I can force the user to pick the group to print. Can I do this by rad reporting and how.
Thanks,
Devin
Thank you very much for your suggestions. After tried many times, I find if the report result is more than 80 pages, the system will throw 'out of memory' exception, after that exception happen, I will get 'Parameter is not valid' error when I try any other reports. So I think too many reprot result will cause the problem.
I want to split the whole report into many page groups, for example, if the report is 100 pages, I can split it into 10 groups, 1 group is 1-10 pages, 2 group is 10-20 group ..., so that I can force the user to pick the group to print. Can I do this by rad reporting and how.
Thanks,
Devin
0
Hi Devin,
Eighty pages do not sound that much and it is weird that you have such problems. How many records do you show in the report? We have to keep in mind that handling reports (be it with large data or large number of reports) usually requires additional resources in terms of powerful CPUs, and enough memory to handle all the operations. As far as the processing time and consumed memory is concerned, the complexity of the report layout, the complexity of the data calculations (aggregates, conditional formatting), the rendering media, the size of the generated document (in pages), and the capabilities of the underlying machine are crucial.
So the quickest test is to run the same report on a more powerful machine and compare the results. Of course lowering the amount of data being shown in the report is also a good approach especially if you do it on database level. Then you can wire up the report parameters to control the data being retrieved from the datasource and loaded/processed by the report engine. Take a look at the following help article for more info: Using Parameters with the SqlDataSource component.
Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Eighty pages do not sound that much and it is weird that you have such problems. How many records do you show in the report? We have to keep in mind that handling reports (be it with large data or large number of reports) usually requires additional resources in terms of powerful CPUs, and enough memory to handle all the operations. As far as the processing time and consumed memory is concerned, the complexity of the report layout, the complexity of the data calculations (aggregates, conditional formatting), the rendering media, the size of the generated document (in pages), and the capabilities of the underlying machine are crucial.
So the quickest test is to run the same report on a more powerful machine and compare the results. Of course lowering the amount of data being shown in the report is also a good approach especially if you do it on database level. Then you can wire up the report parameters to control the data being retrieved from the datasource and loaded/processed by the report engine. Take a look at the following help article for more info: Using Parameters with the SqlDataSource component.
Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0

Karim
Top achievements
Rank 1
answered on 17 Aug 2020, 12:40 AM
I had the same issue when I deployed it to Azure. Locally everyhting was working perfectly. For anyone else facing the exact same issue, you need to upgrade your plan on Azure most likely that supports GDI.