Page 1 of 1

Script Errors on Some Buttons

Posted: Thu Nov 21, 2013 3:46 pm
by MisterMike
I get javascript errors on the Admin side when clicking on some of the buttons. This happens on my test server, but not on my development server. I've used WinMerge to compare the files on the two servers and I don't see any missing files, except for some themes that I'm not using. It could be a configuration on the test server. It's 32 bit Window Server SP2 with IIS 7. I've pasted in the error message from the app.log below. They all have the same
"Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format." message.




2013-11-21 15:13:54,091 ERROR AbleCommerce An error has occured at http://estore2010/Store/Admin/Products/ ... fault.aspx
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> 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 System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.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)
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.admin_products_producttemplates_default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\store\f7ac5287\81289c4b\App_Web_301qjfkn.4.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Re: Script Errors on Some Buttons

Posted: Fri Nov 22, 2013 10:18 am
by Katie
Microsoft released an update last month for .NET 4.0 which will fix some issues with later browsers and image buttons. You might want to make sure the server has this update - http://support.microsoft.com/kb/2836939/en-us

If you can report back and let us know if this fixes the problem, that would be great.

Thanks
Katie

Re: Script Errors on Some Buttons

Posted: Sat Nov 23, 2013 5:06 am
by jmestep
You also might want to look at the following file on the file system to see what that line of code is doing.

c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\store\f7ac5287\81289c4b\App_Web_301qjfkn.4.cs

I do see the message you are having on numerous sites but is kind of a random thing and when I go to the same page on the site, there is no error. Possible something gets truncated so a variable is read incorrectly. I remember a problem in the past when people had a lot of software installed on their machine - something to do with the request headers, but it might be the IE 10 bug also. Here is a post with the same input string error message.
viewtopic.php?f=42&t=17111&hilit=input+string

Re: Script Errors on Some Buttons

Posted: Mon Dec 02, 2013 1:35 pm
by MisterMike
That server hasn't been updated in over a year. I ran the Windows Update and it looks like the buttons are working now. Thanks for the suggestions everyone!