简体   繁体   English

在使用Infragistics WebDialogWindow进行Postback的过程中,“指定的参数超出有效值的范围。”

[英]“Specified argument was out of the range of valid values.”on Postback's process using Infragistics WebDialogWindow

I've got realy weird problem on a web page when processing a post back. 处理回发时,网页上确实出现了怪异的问题。 Here is the error will fallow an explication : 这是错误将被说明的错误:

Error : Specified argument was out of the range of valid values. 错误:指定的参数超出有效值范围。 Parameter name: value Description: An unhandled exception occurred during the execution of the current web request. 参数名称:值描述:执行当前Web请求期间发生未处理的异常。 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. 异常详细信息:System.ArgumentOutOfRangeException:指定的参数超出有效值范围。 Parameter name: value 参数名称:值

Source Error: 源错误:

An unhandled exception was generated during the execution of the current web request. 当前Web请求的执行期间生成了未处理的异常。 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. [ArgumentOutOfRangeException:指定的参数超出有效值范围。 Parameter name: value] 参数名称:值]
System.Web.UI.WebControls.Unit..ctor(String value, CultureInfo culture, UnitType defaultType) +8670188 System.Web.UI.WebControls.Unit..ctor(字符串值,CultureInfo文化,UnitType defaultType)+8670188
System.Web.UI.WebControls.Unit.Parse(String s, CultureInfo culture) +31 System.Web.UI.WebControls.Unit.Parse(String s,CultureInfo文化)+31
Infragistics.Web.UI.Framework.ControlObject.ConvertToUnit(Object obj, Unit def, Boolean allowNegative) +399 Infragistics.Web.UI.LayoutControls.WebDialogWindow.get_Top() +74 Infragistics.Web.UI.LayoutControls.DialogWindowBot.LoadClientPropsTransactionList(Dictionary`2 list) +350 Infragistics.Web.UI.Framework.ControlObject.ConvertToUnit(Object obj,Unit def,Boolean allowNegative)+399 Infragistics.Web.UI.LayoutControls.WebDialogWindow.get_Top()+74 Infragistics.Web.UI.LayoutControls.DialogWindowBot.LoadClientPropsTransactionList(字典2清单)+350
Infragistics.Web.UI.Framework.ObjectBase.LoadTransactionList(Boolean deferLoadPostDataProcessing) +57 Infragistics.Web.UI.Framework.ObjectBase.LoadTransactionList(Boolean deferLoadPostDataProcessing)+57
Infragistics.Web.UI.Framework.RunBot.LoadClientData() +57 Infragistics.Web.UI.Framework.RunBot.HandleLoadPostData(String postDataKey, NameValueCollection postCollection) +14 Infragistics.Web.UI.Framework.RunBot.LoadClientData()+57 Infragistics.Web.UI.Framework.RunBot.HandleLoadPostData(String postDataKey,NameValueCollection postCollection)+14
Infragistics.Web.UI.Framework.ControlMain.LoadPostData(String postDataKey, NameValueCollection postCollection) +19 Infragistics.Web.UI.Framework.ControlMain.LoadPostData(String postDataKey,NameValueCollection postCollection)+19
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +693 System.Web.UI.Page.ProcessPostData(NameValueCollection postData,布尔值fBeforeLoad)+693
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743 System.Web.UI.Page.ProcessRequestMain(布尔includeStagesBeforeAsyncPoint,布尔includeStagesAfterAsyncPoint)+1743

Explication 解释

If you look at the stacktrace, we easly see that .NET still aint pass throught my code so i can't put any breakpoint. 如果您查看stacktrace,我们很容易看到.NET仍然无法通过我的代码,因此我无法放置任何断点。 Something more strange is that for EXACTLY the same process but with differents data (on my page), it works preaty fine. 更奇怪的是,对于完全相同的过程,但数据不同(在我的页面上),它可以很好地工作。 Please help me, im on it for about 3 hours! 请帮助我,即时通讯持续约3个小时!

UPDATE 更新

I've got to say that, when it fails (for now only 2 objects on somethings like 30 tested), it fails ONLY on a Postback. 我要说的是,当它失败时(目前仅在2个对象上测试了30个对象),它仅在回发时失败。 It become on page that using : Infragistics webdialogwindow and a webcontrol to handles the "visible" like property (Hidden or normal not the size). 它在页面上使用:Infragistics webdialogwindow和一个webcontrol来处理“可见”之类的属性(隐藏或正常而不是大小)。 But as someone said below (sorry don't remember your name), it's for sure regarding to the webdialogwindow but i just DON'T handle the position of it ... 但是正如下面有人说的(很抱歉,您的名字不记得了),对于webdialogwindow来说是可以肯定的,但是我只是不处理它的位置...

UPDATE 2 更新2

We've tried to removed a varchar(max) column's value from database and now it's workin'!! 我们试图从数据库中删除varchar(max)列的值,现在可以正常工作了!! Wow, we don't know what to think because everyting looks to be ok.The problem is that we MUST keep this column's value!!! 哇,我们不知道该怎么想,因为一切看起来都还可以,问题是我们必须保留此列的值! Anyone know what to think about that? 有人知道该怎么想吗? This varchar(max) is shown as a Eval("DescriptionMemo") on a datalist. 此varchar(max)在数据列表上显示为Eval(“ DescriptionMemo”)。

You are calling the constructor for System.Web.UI.WebControls.Unit with an invalid parameter set or somehow initializing this improperly. 您正在使用无效的参数集调用System.Web.UI.WebControls.Unit的构造函数,或者以某种方式对其进行了不正确的初始化。

Are you setting a unit somewhere on a WebControl in your aspx page? 您是否要在aspx页面的WebControl上的某个位置设置单位?

My guess is that your are sending something it can't parse: 我的猜测是您正在发送无法解析的内容:

System.Web.UI.WebControls.Unit..ctor( String value , CultureInfo culture, UnitType defaultType) System.Web.UI.WebControls.Unit..ctor( 字符串值 ,CultureInfo文化,UnitType defaultType)

How to: Set Web Server Control Unit Properties 如何:设置Web服务器控制单元属性

Given your update, here's an educated guess. 根据您的更新,这是有根据的猜测。

I don't know much about the Infragistics WebDialog componen, but most dialogs are centered on the page. 我对Infragistics WebDialog组件了解不多,但是大多数对话框都位于页面的中心 If your column has anything to do with the positioning of the dialog, it may be calculating the position of the dialog based on the size of the data that is being displayed. 如果您的列与对话框的位置有关,则可能是根据所显示数据的大小来计算对话框的位置。

If the data is too large to display, that may put the dialog at a position that is theoretically outside the bounds of the Unit class's acceptable range of values. 如果数据太大而无法显示,则可能会将对话框置于理论上超出Unit类的可接受值范围的位置。

If the column is hidden, everything is fine, because the dialog would fit on the window, and the coordinates (specifically, the Top coordinate, as shown in your stack trace) would be negative. 如果该列是隐藏的,那么一切都很好,因为对话框将适合窗口,并且坐标(特别是Top坐标,如堆栈跟踪所示)将为负。 If it's displayed, the dialog would not, because it would stretch beyond the confines of the browser window. 如果显示该对话框,则不会显示该对话框,因为它将超出浏览器窗口的范围。

That's all just theory and speculation, but it's based on what we can see here. 仅仅是理论和推测,但这是基于我们在这里可以看到的。

According to MSDN , ArgumentOutOfRangeException is thrown by the Unit class's constructor when the value argument is out of range (not between -32768 and 32767). 根据MSDN ,当value参数超出范围时(不在-32768和32767之间),Unit类的构造函数将引发ArgumentOutOfRangeException。 Somehow, that's the value being passed to that element on the page. 不知何故,这就是传递给页面上该元素的值。

Now, you've said that you are passing different values in different requests and that those requests work. 现在,您已经说过要在不同的请求中传递不同的值,并且这些请求有效。 What are the values that you are passing that work? 您传递这项工作的价值观是什么? What are the values that you pass that fail? 您传递失败的值是什么?

EDIT: I see that you are using the Infragistics WebDialogWindow, and that you're trying to get the topmost coordinate of the dialog. 编辑:我看到您正在使用Infragistics WebDialogWindow,并且您正在尝试获取对话框的最高坐标。 THAT is the coordinate that is off. 那是关闭的坐标。 It's outside the valid range of values for the Unit class. 它超出了Unit类的值的有效范围。 The big question now is why is that the case? 现在最大的问题是为什么会这样?

Wowwwww! 哇! It's ok! 没关系! All I can say is : If you'r using Infragistics webdialogwindow with IntialLocation set to "Centered". 我只能说:如果您使用Infragistics webdialogwindow,且IntialLocation设置为“ Centered”。 Put it at the top of your page (It's a "popup" anyway so it "over" your page content). 将其放在页面顶部(无论如何,它都是“弹出窗口”,因此它“覆盖”了页面内容)。 Because my problem were that when the page having, says more that 32000px lenght(dunno the exact length) popup were unabled to locate correctly the window cuz it can't put it in a int32... wow. 因为我的问题是当页面具有32000px长度(不知道确切长度)的弹出窗口时,无法正确定位窗口cuz,因此无法将其放在int32中...哇。 What a bug 真是个错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 得到“指定的参数超出有效值范围。 参数名称:” - Getting “Specified argument was out of the range of valid values. Parameter name:” 指定的参数超出了有效值的范围。 参数名称:utcDate - Specified argument was out of the range of valid values. Parameter name: utcDate 错误:指定的参数超出有效值范围。 在RowDataBound Gridview中 - Error: Specified argument was out of the range of valid values. in RowDataBound Gridview 指定的参数超出了有效值的范围。 参数名称:索引 - Specified argument was out of the range of valid values. Parameter name: index 指定的参数超出有效值范围。 参数名称:动态生成的控件上的索引 - Specified argument was out of the range of valid values. Parameter name: index on dynamically generated Control 错误指定的参数超出了有效值的范围。 参数名称:DataGridview Row Data Bound 中的索引 - Error Specified argument was out of the range of valid values. Parameter name: index in DataGridview Row Data Bound System.ArgumentOutOfRangeException: '指定的参数超出了有效值的范围。 参数名称:asp.net中的index' - System.ArgumentOutOfRangeException: 'Specified argument was out of the range of valid values. Parameter name: index' in asp.net 指定的参数超出了有效值的范围。参数名称:site - 由于创建者更新而导致的错误 - Specified argument was out of the range of valid values. Parameter name: site - Error Due To Creators Update 单击“编辑”按钮时,出现“指定的参数超出有效值范围。” - when click “edit” button ,appear“ Specified argument was out of the range of valid values.”exception 指定的参数超出了有效值的范围 - Specified argument was out of the range of valid values
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM