开发者

"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. 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: value

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: value]

System.Web.UI.WebControls.Unit..ctor(String value, CultureInfo culture, UnitType defaultType) +8670188

System.Web.UI.WebControls.Unit.Parse(String s, CultureInfo culture) +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.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.ControlMain.LoadPostData(String postDataKey, NameValueCollection postCollection) +19

System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +693

System.Web.UI.Page.ProcessRequestMain(Boole开发者_运维问答an includeStagesBeforeAsyncPoint, Boolean 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. 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!

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. It become on page that using : Infragistics webdialogwindow and a webcontrol to handles the "visible" like property (Hidden or normal not the size). 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 ...

UPDATE 2

We've tried to removed a varchar(max) column's value from database and now it's workin'!! 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.


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. 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.

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. 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.


You are calling the constructor for System.Web.UI.WebControls.Unit with an invalid parameter set or somehow initializing this improperly.

Are you setting a unit somewhere on a WebControl in your aspx page?


My guess is that your are sending something it can't parse:

System.Web.UI.WebControls.Unit..ctor(String value, CultureInfo culture, UnitType defaultType)

How to: Set Web Server Control Unit Properties


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). 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. THAT is the coordinate that is off. It's outside the valid range of values for the Unit class. 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". 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. What a bug

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜