'Specified argument was out of the range of valid values' error when editing Preferences
Article ID |
1038 |
Posted Date |
2/24/2005 |
Product(s) |
Ultimate Survey - Enterprise .NET Edition with Dev Kit |
Updated Date |
2/24/2005 |
Symptom:
When selecting Preferences within the Settings Section of Ultimate Survey Enterprise survey software, an error is thrown that looks similar to the following:
Server Error in '/UltimateSurvey' Application.
--------------------------------------------------------------------------------
Specified argument was out of the range of valid values. Parameter name: 1000
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. Parameter name: 1000
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.
Parameter name: 1033]
System.Web.UI.WebControls.ListControl.set_SelectedValue(String value) +152
UltimateSurvey.Admin.Prefences.Page_Load(Object sender, EventArgs e) +614
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Resolution:
Connect to SQL query analyzer using your Ultimate Survey database and run the following script:
INSERT INTO rz_Settings(SettingName,SettingValue)
VALUES('DefaultStyleTemplate','-1')
GO
UPDATE rz_Form SET styleTemplate = NULL
WHERE styletemplate is null
or (styletemplate is not null and styletemplate not in (select templateID FROM rz_StyleTemplate))
GO
If an error occurs while running the script, run the following script instead:
UPDATE rz_Settings
SET SettingValue = '-1'
WHERE settingName = 'DefaultStyleTemplate'
GO
If you continue to experience problems, please contact Prezza Support. Let the support technician know that you followed the instructions in this article, and explain any errors that occurred.