Welcome Guest Search | Active Topics | Sign In | Register

System.Number.StringToNumber. Input string was not in a correct format Options
Integrum
Posted: Wednesday, November 11, 2015 4:13:35 AM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 7
We use the EO.TreeView and EO.DataPicker component in several of our applications,
while, on the server, we often fix the errors in these components (when users use different browsers).

I saw a similar post on your forum, in this post you do not have reproduced and left unattended.
http://www.essentialobjects.com/forum/postst8800_EOWebGrid-SystemFormatException-Input-string-was-not-in-a-correct-format-in-Safari-80.aspx


We are very annoyed and probably will be forced to abandon the use of these components by replacing it with another.
Can you add diagnostics to understand the problem.

here is one of the stacks (all exceptions have message: at System.Number.StringToNumber Input string was not in a correct format)

Exception message: Input string was not in a correct format.
Stack trace: at System.Number.StringToNumber (String str, NumberStyles options, NumberBuffer & number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32 (String s, NumberStyles style, NumberFormatInfo info)
at EO.Web.Internal.r.a (kv A_0)
at EO.Web.Internal.cg.ac ()
at EO.Web.WebControlBase.LoadViewState (Object savedState)
at EO.Web.BaseNavigator.b (Object A_0)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex (ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive (Object savedState)
at System.Web.UI.Page.LoadAllState ()

eo_support
Posted: Wednesday, November 11, 2015 10:22:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

Sorry to hear about the problem. You can try the latest build and see if it fixes the problem for you. If not then you can try to isolate the problem into a test project and send the test project to us:

http://www.essentialobjects.com/forum/moderate_index.aspx

Sometimes the problem maybe caused by a cached older version of the page or bots. For those cases you can ignore the error.

If the latest build does fix the problem, you can go to your license key page to download a new license key for the 2015 release and that key should work with the latest build (15.3.1.0). However this is the last build covered by your free one year upgrade since it was made shortly before your free upgrade expires.

Thanks!
Integrum
Posted: Wednesday, November 11, 2015 2:05:26 PM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 7
Yes, stack in previous post was for version 12.0.15, however in other our application we have updated to 15.2.53 - and

Exception message: Input string was not in a correct format.
Stack trace: System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
в System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
в System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
в EO.Internal.gc.a(iu A_0)
в EO.Internal.fk.ac()
в EO.Web.WebControlBase.LoadViewState(Object savedState)
в EO.Web.BaseNavigator.b(Object A_0) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в System.Web.UI.Page.LoadAllState() в System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Quote:
by a cached older version of the page or bots

No, real users have this problem every day - our service is enough popular - and we are monitoring all errors

Quote:
should work with the latest build (15.3.1.0)

Ок, we will try.But something tells me that the only change stack (obfuscator). I will be glad to make a mistake.

Quote:
If not then you can try to isolate the problem into a test project and send the test project to us

We can't. We tried :)
We have three environment: developer, test and production - problem periodically reproduce only in production environment
eo_support
Posted: Wednesday, November 11, 2015 3:33:56 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

We can't do much without being able to reproduce the problem. The stack doesn't help much since we know it fails because it receives invalid data --- the question is how the invalid data occurs. This could have to do with your environment, or your database content, or something else that is unknown to us. That is why it's impossible for us to shoot in the dark to fix this problem magically without not knowing what caused it first.

Thanks!
Integrum
Posted: Thursday, November 12, 2015 3:52:39 PM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 7
eo_support wrote:
with the latest build (15.3.1.0)
- same exception

System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
в System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
в System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
в EO.Internal.f9.a(iq A_0) в EO.Internal.fh.ac()
в EO.Web.WebControlBase.LoadViewState(Object savedState)
в EO.Web.BaseNavigator.b(Object A_0) в System.Web.UI.Control.LoadViewStateRecursive(Object savedState) в
...

Can you add a diagnosis in this line? Trace.WriteLine, Debug.WriteLine?
Trace can you (or us) to make it clear - in which the control problem occurs and what data can not be converted to int?

If we send you all the params of the user post reguest, can it help?
eo_support
Posted: Thursday, November 12, 2015 5:59:18 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Integrum wrote:
If we send you all the params of the user post reguest, can it help?


Not exactly. It takes two things to reproduce this kind of problem: 1. The control tree, 2. The post back data. What occurs to you is when the specific data in your case got posted back to the specific control tree (which is the result of your ASP.NET page and your code), certain block of data got routed to the Grid and the Grid doesn't recognize this block of data (it's not in the format the Grid expected). This can happen for a lot of reasons, for example, if you just post garbage data back to your page (often done by bots), then you can get this error easily. But obviously that's not the same problem as yours. So in order to precisely reproduce the problem, you need to both the control tree and the post data. That pretty much means a repro-app.

Thanks!
Integrum
Posted: Wednesday, November 25, 2015 12:37:15 PM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 7
I looked through the exception stack,

Quote:
System.FormatException: Input string was not in a correct format.
at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Single.Parse(String s)
at EO.Internal.f9.a(iq A_0)
at EO.Internal.fh.ac()
at EO.Web.WebControlBase.LoadViewState(Object savedState)
at EO.Web.BaseNavigator.b(Object A_0)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at


your code f9.a(iq A_0) contains the following lines of code
http://take.ms/jm65g

in param that calls __eo_obj_states (base64) (when there is a problem comes) i have
http://take.ms/PuCNn

this is not culture invariant code, (but in the same method there is more correct code http://take.ms/u7pDc)

Our web-application has ru-RU culture as default - separator for float - ,:
web.config
<globalization culture="ru-RU" uiCulture="ru-RU" />
when we change it to
<globalization culture="en-GB" uiCulture="en-GB" />
the problem persists, we stopped to fix bugs in our logs

Will you be able to correct the defect is now making these lines culture invariat?

Thank you very much.
eo_support
Posted: Wednesday, November 25, 2015 1:15:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

Thanks for the detailed analysis. We will update our code accordingly.

However you said if you change culture from ru-RU to en-GB, the problem still occurs. Does that mean there are more problems than just the invariant culture issue you pointed out?

Thanks!
Integrum
Posted: Wednesday, November 25, 2015 4:14:35 PM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 7
eo_support wrote:
Hi,
However you said if you change culture from ru-RU to en-GB, the problem still occurs. Does that mean there are more problems than just the invariant culture issue you pointed out?
Thanks!


No,
I made a mistake in the wording, sorry (

we have solved the problem by changing of culture from ru-RU to en-GB
eo_support
Posted: Wednesday, November 25, 2015 5:00:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Great. Thanks for confirming. We will make the change in our next build.
Integrum
Posted: Wednesday, November 25, 2015 5:27:42 PM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 7
I would be grateful for efficiency.
This issue really gives us a lot of trouble.
Thank you.
eo_support
Posted: Friday, November 27, 2015 1:04:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

We have posted a new build that addressed this issue. You can download the new build from our download page.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.