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