Skip to content

Infragistics Community Forum / Cross Platform / Ultimate UI for Xamarin / Fix System.FormatException in WebTree When Chrome Is Zoomed

Fix System.FormatException in WebTree When Chrome Is Zoomed

New Discussion
Mark Laurie
Mark Laurie asked on Feb 20, 2015 2:13 PM

System.FormatException: Input string was not in a correct format error is thrown on Chrome when browser is zoomed in/out

When chrome is zoomed in or out, we get above error after scrolling down\up in a webtree and try to save the selection.

This seems to have been introuduced with the recent version of Chrome browser (39.0.2171.71) which started setting the scroll position as a floating point number rather than an integer.

Is there a fix available for this issue?

Sign In to post a reply

Replies

  • 0
    Ivaylo Ganchev
    Ivaylo Ganchev answered on Feb 12, 2015 12:33 PM

    Hello,

     

    Google chrome updates quite frequently. It seems this is currently not reproducible with the following testing environment:

    Test samples from our Official Website. For example: https://www.infragistics.com/samples/aspnet/data-tree/data-binding

    Tested under ASP.NET 14.2.20142.1028

    Chrome version 40.0.2214.111

    I suggest updating Chrome should remove the unwanted behavior. If the issue persists however, I suggest you to attach a sample where this issue is appearing or if it is not possible to share the exact product version you are using as well as some more details to reproduce this as for example is there something more involved as steps and interactions.

    • 0
      Mark Laurie
      Mark Laurie answered on Feb 12, 2015 2:52 PM

      Hi:

      Thanks for your reply. Our Chrome is uptodate and this issue has been occuring since November.

      I m not able to replicate this in your demo page either because this error is happening when all these steps are taken:

      1- Chrome is Zoomed-in

      2- you scroll down the tree to select an item

      3- you try to get the selected item (and save it). This step is not possible in demo.

      Here is the error stack trace:

      Error Message: 
      Input
       
      string
       was not in a correct format.
       
      Exception Type: System.Web.HttpUnhandledException
      Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
      Stack Trace:    at System.Web.UI.Page.HandleError(Exception e)
         at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
         at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
         at System.Web.UI.Page.ProcessRequest()
         at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
         at System.Web.UI.Page.ProcessRequest(HttpContext context)
         at ASP.applicant_attcreditstopup_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7f1abafc\b8cd4f32\App_Web_hurk3lhh.12.cs:line 0
         at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
         at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
       
      Inner Exception Type: System.Exception
      Inner Message: 175.2 is not a valid value for Int32.
      Inner Stack Trace:    at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
         at System.ComponentModel.TypeConverter.ConvertFromString(
      String
       text)
         at Infragistics.WebUI.UltraWebNavigator.ClientStateXmlParser.ProcessXmlData(UltraWebTree webTree, XmlNode xmlNode, Object currentObj, Boolean ignoreCase, ArrayList eventList)
         at Infragistics.WebUI.UltraWebNavigator.UltraWebTree.ProcessPostData(XmlNode doc)
         at Infragistics.WebUI.UltraWebNavigator.UltraWebTree.LoadPostData(
      String
       postDataKey, NameValueCollection values)
         at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
         at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      Here is a sample code including the component version:

      <%@ Register TagPrefix="ignav" Namespace="Infragistics.WebUI.UltraWebNavigator" Assembly="Infragistics2.WebUI.UltraWebNavigator.v8.3" %>
      <ignav:ultrawebtree id="wtrv" Cursor="Default" ExpandImage="ig_treePlus2.gif" Indentation="20" WebTreeTarget="ClassicTree"
          DefaultItemClass="DefaultItemClass" CheckedNodes="(Collection)" CollapseImage="ig_treeMinus2.gif"
          AllowDrag="False" Font-Names="Verdana,Sans-Serif" Font-Size="8pt" BackColor="Transparent" BorderWidth="2px"
          BorderStyle="Dotted" BorderColor="WhiteSmoke" Height="300px" Width="320px" runat="server">
          <RootNodeStyle></RootNodeStyle>
          <NodeStyle Cursor="Default"></NodeStyle>
          <NodePaddings Top="2px"></NodePaddings>
          <NodeEditStyle Font-Size="9pt" Font-Names="Tahoma,Verdana,Sans-Serif"></NodeEditStyle>
          <Padding Top="5px"></Padding>
          <Levels>
              <ignav:Level Index="0" LevelCheckBoxes="False"></ignav:Level>
              <ignav:Level Index="1" LevelCheckBoxes="False"></ignav:Level>
          </Levels>
          <Styles>
              <ignav:Style Cursor="Default" CssClass="DefaultItemClass"></ignav:Style>
              <ignav:Style Cursor="Default" CssClass="tqa"></ignav:Style>
          </Styles>
      </ignav:ultrawebtree>

      Please let me know if you need more information.

      Thanks!

      • 0
        Mark Laurie
        Mark Laurie answered on Feb 12, 2015 2:57 PM

        Adding the stack trace again as it wasnt displayed properly in previous post:

        Exception Type: System.Web.HttpUnhandledException Message: Exception of type 'System.Web.HttpUnhandledException' was thrown. Stack Trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.applicant_attcreditstopup_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7f1abafc\b8cd4f32\App_Web_hurk3lhh.12.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Inner Exception Type: System.Exception Inner Message: 175.2 is not a valid value for Int32. Inner Stack Trace: at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at System.ComponentModel.TypeConverter.ConvertFromString(String text) at Infragistics.WebUI.UltraWebNavigator.ClientStateXmlParser.ProcessXmlData(UltraWebTree webTree, XmlNode xmlNode, Object currentObj, Boolean ignoreCase, ArrayList eventList) at Infragistics.WebUI.UltraWebNavigator.UltraWebTree.ProcessPostData(XmlNode doc) at Infragistics.WebUI.UltraWebNavigator.UltraWebTree.LoadPostData(String postDataKey, NameValueCollection values) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)




      • 0
        Ivaylo Ganchev
        Ivaylo Ganchev answered on Feb 16, 2015 11:50 AM

        Hello Mark,

         

        It appears you are using version v8.3 of the ASP.NET product (classic controls) and these are considered deprecated long time ago. What I mean by this is, these controls were developed and supported according to the existing software environment at the time (about 7 years ago during several years later). They are no longer updated in order to the match the new browser versions and it is expected some issues could appear.

        A list with the supported environments/browsers per product version could be found at:

        https://www.infragistics.com/support/supported-environments

        You could find more details regarding the controls at: https://www.infragistics.com/support/product-lifecycle

         

        In order to have a better experience, I suggest you to upgrade to one of the latest releases, where it is ensured the controls are constantly updated when there are changes in the browsers as well.

      • 0
        Mark Laurie
        Mark Laurie answered on Feb 19, 2015 5:40 PM

        Thanks for your reply.

        Is there a link where I can find a latest version of classic controls please? What product would you suggest if we were to drop the classic controls all together?

        Thanks.

      • 0
        Michael Peterson
        Michael Peterson answered on Feb 20, 2015 2:13 PM

        Hello Mark,

        The latest version with the classic controls is v11.1, you can go to the archived downloads pages where we have a link for this version, note that upgrading to v11.1 will not get you support for the classic controls in Chrome as support for Chrome was implemented after they were retired:

        https://www.infragistics.com/support/archived-downloads

        As for what to replace classic controls with depends on your personal preference. First we have the ASP.NET AJAX/Aikido control:

        https://www.infragistics.com/samples/aspnet/

        https://www.infragistics.com/help/aspnet/classic-control-migration-control-mapping

        If you want to stay with ASP.NET you can see the following blog that goes over what controls were replaced and with what other control:

        https://www.infragistics.com/community/blogs/b/taz_abdeali/posts/asp-net-product-changes-in-2011-volume-2

        The other option is the jQuery IgniteUI controls:

        http://www.igniteui.com/

        http://www.igniteui.com/help/api/2014.2/

        https://www.igniteui.com/help/14.1/home-page

        Which you pick will depend on your preference of platform as well as needs of your application.

        Please let me know if you have any further questions concerning this matter.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Mark Laurie
Favorites
0
Replies
6
Created On
Feb 20, 2015
Last Post
11 years, 1 month ago

Suggested Discussions

Created by

Created on

Feb 20, 2015 2:13 PM

Last activity on

Mar 5, 2026 9:22 AM