Specified argument was out of the range of valid values. Solution

Source: Internet
Author: User

Today, updatepanel always encounters some strange problems. I just encountered the following problem.

SYS. webforms. pagerequestmanagerservererrorexception: specified argument was out of the range of valid values.

The detailed problem is described as follows:

Code Specified argument was out of the range of valid values.
Description: An unhandled exception occurred during the execution of the current Web request.
Please review the stack trace for more information about the error and where it originated in the code.

Exception details: system. argumentoutofrangeexception: specified argument was out of the range of valid values.
Source error:
An unhandled exception was generated during the execution of the current Web request.
Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack trace:
[Argumentoutofrangeexception: specified argument was out of the range of valid values.]
Microsoft. Reporting. webforms. reportviewer. set_currentpage (int32 value) + 118
Microsoft. Reporting. webforms. reportviewer. clientsidepagenumberchanged (Object sender, eventargs e) + 97

The above problem occurs because I applied the master page on the report page. The master page uses the Ajax timer for timed data retrieval. The page runs normally. Timer obtains data normally for the first time, and the above error occurs when the second time the information is obtained.

The preceding error is caused by reportviewer. You do not know why. After checking some information, find the solution.

 

Solution:

Set the visiable of reportviewer to false. After obtaining the data, set the visiable of eportviewer to true.

 

 

 

Refer to solution page:

http://social.msdn.microsoft.com/Forums/en-US/vsreportcontrols/thread/3c555eb9-6bc2-4155-8233-67462d45fdd1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.