1

I am using Jquery Datatables that makes ajax GET call to webmethod from aspx code behind file . My code works fine on Firefox,and the call reaches my webmethod perfectly fine , but when it comes IE11 ,I am getting parser error.

Here is my .aspx file , and here is my code behind file for the same .

While debugging ,I am getting some errors,here is the parser error message and the response .

The above mentioned ajax call worked fine(on both IE and Firefox) when I created this on a fresh new website project with VS2015 . Now I wanted to incorporate the same code into my existing larger website project which is actually developed long ago ,but we migrated to VS2015 .But when I copied the same code into my official website project ,its throwing errors with IE11 ,but still works well with Firefox.While using IE11 ,my ajax GET call is failing and it is not hitting my webmethod .

Error message

SyntaxError: Invalid character at parseJSON (http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.2.min.js:4:4377)

I pasted the full error message here .

Can anyone help me resolve this error ?

I tried adding verb GET (as pasted below)entry into my web.config as suggested here ,but no luck

<add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false" />

1
  • Added links to my code pasted in pastebin
    – roney
    Dec 12, 2015 at 4:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.