Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Input string was not in a correct format - only Chrome (Read 6778 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Input string was not in a correct format - only Chrome
Feb 18th, 2015 at 1:44am
Print Post  
Hi,

It's been a while since I've been on these forums.
Hope everything is going well with you folks.

We've been encountering this error at random and only for our Chrome users.

In doing some Google searches, I have come across statements such as this:

"Chrome has started setting the scroll position as a floating point rather than an integer."


Switching to any other browser works fine.

Have you seen these types of errors?

Here's the complete exception:

Input string was not in a correct format. on Page /P_CFFD_Ribbon.aspx for User demodavid. Browser: Chrome Version: 40.0, Platform: Unknown Input string was not in a correct format. System.FormatException: Input string was not in a correct format. 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 A.cff2eca880d02be73c71662038b21f2a6.c6aa5f7fdc2e26faac71768535b65443e(DiagramVie
w c3d2ea328bcae2cddab9c206fcedee40b, String c9ec0dbdde9b6a1a1d537757377d801dc, NameValueCollection c5c11b67bc18f800a1449180ab80777f2) at MindFusion.Diagramming.WebForms.DiagramView.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I hope you have some ideas, because we're at a loss as to what to do.

Thanks in advance.

Jim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Input string was not in a correct format - only Chrome
Reply #1 - Feb 18th, 2015 at 10:43am
Print Post  
Hi,

DiagramView calls int.Parse for the submitted scroll position indeed, so it will crash if Chrome has started sending it as a floating point value. We could not reproduce that, but it might depend on screen resolution or users' DPI settings in control panel. We've now changed it to use float.Parse in this version:

https://mindfusion.eu/_beta/netdiag541.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: Input string was not in a correct format - only Chrome
Reply #2 - Feb 19th, 2015 at 4:57pm
Print Post  
Hi Stoyan,

We've tested the fix you provided and it does work.
We are doing further testing on this release, but are likely to be in a position to promote it to production sometime next week.

Can you provide us with a release (or whatever I need) to turn off the beta message that appears above the diagram.

Thanks

Jim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Input string was not in a correct format - only Chrome
Reply #3 - Feb 19th, 2015 at 5:28pm
Print Post  
Hi,

We are releasing it at the end of next week. If you are in a hurry, you could probably work around the floating point value using old version by rounding scroll coordinates before posting back to server. E.g. something like this in ImageMap mode, replacing diagramView substring with your view.ID:

Code
Select All
<form id="form1" runat="server" onsubmit="fixScroll()">

function fixScroll()
{
        var leftField = document.getElementById('_mfusion_diagramView_ScrollLeft');
        var scrollLeft = leftField.value;
        scrollLeft = Math.round(scrollLeft);
        leftField.value = scrollLeft;

        // same for scrollTop
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: Input string was not in a correct format - only Chrome
Reply #4 - Mar 1st, 2015 at 6:49pm
Print Post  
Hi Stoyan,

Is the release with this fix available yet?

Jim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Input string was not in a correct format - only Chrome
Reply #5 - Mar 2nd, 2015 at 9:04am
Print Post  
Hi, we are releasing v5.4.1 with fix included later today.
  
Back to top
 
IP Logged
 
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: Input string was not in a correct format - only Chrome
Reply #6 - Mar 4th, 2015 at 9:24pm
Print Post  
Hi Stoyan,

Can you confirm that release 5.4.1 available in the downloads area is the same as the beta that you provided me earlier - other than the beta message at the top of the diagram being removed.

Otherwise, we will need to retest.

Please advise.

Thanks

Jim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Input string was not in a correct format - only Chrome
Reply #7 - Mar 5th, 2015 at 10:07am
Print Post  
Hi Jim,

Our version control system shows three small changes since the version from February. In case you'd want to re-test for them, they are in NodeListView, in ZoomControl and in the scroll-position restore script. It turned out latest Chrome refuses to set div scroll positions until the page loads completely, so we are now restoring them from a timer (for Chrome only).

Regarding removing trial message, note that you must specify license key strings now to disable trial mode. You can find your key on account page at our web-site, and should either assign it to respective DiagramView property, or if using more MindFusion controls call AddLicense method from application_start event in globals.asax:

Code
Select All
void Application_Start(object sender, EventArgs e)
{
    MindFusion.Licensing.LicenseManager.AddLicense(
        "your key here");
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint