Script Errors on Some Buttons

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
MisterMike
Ensign (ENS)
Ensign (ENS)
Posts: 12
Joined: Tue Apr 16, 2013 7:37 am

Script Errors on Some Buttons

Post by MisterMike » Thu Nov 21, 2013 3:46 pm

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)

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Script Errors on Some Buttons

Post by Katie » Fri Nov 22, 2013 10:18 am

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Script Errors on Some Buttons

Post by jmestep » Sat Nov 23, 2013 5:06 am

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
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
MisterMike
Ensign (ENS)
Ensign (ENS)
Posts: 12
Joined: Tue Apr 16, 2013 7:37 am

Re: Script Errors on Some Buttons

Post by MisterMike » Mon Dec 02, 2013 1:35 pm

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!

Post Reply