Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format

On IE10, when I click the login button I see the following error in the console: SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format. ScriptResource.axd, line 939 character 13

I added some server-side logging, but the page is never sent, so it seems a client side issue.

This behavior does not occur in IE8, Firefox OR chrome, there it works fine.

like image 359
Adam Avatar asked Jan 10 '13 19:01

Adam


1 Answers

This is occurring because your submit button is an input with type="image". Therefore, coordinates are submitted with the form. Previous versions of Internet Explorer submit those coordinates as integers, but Internet Explorer 10 submits them as decimals.

There are a variety of ways to fix it. See this question and this bug report for some solutions.

like image 179
Adam Taylor Avatar answered Oct 17 '22 19:10

Adam Taylor