JSONP parsing error from WCF

Posted by user1754730 on Stack Overflow See other posts from Stack Overflow or by user1754730
Published on 2012-10-17T22:59:39Z Indexed on 2012/10/17 23:00 UTC
Read the original article Hit count: 173

Filed under:
|
|

Answered my own question

I had a problem with a jquery (jsonp) call to a WCF service that was throwing a json parsing error. Using ASP.NET 4.0 on the WCF side and jquery 1.7 on the client side. Turned out there was an old set of script tags on the page using language = VBSCRIPT. The browser was interpreting the returned json packet of script as "VBscript" instead of javascript. I placed a set of empty javascript tags at the top of the page and the browser is now interpreting the json as the proper javascript function.

Hope this helps someone else. Tom

© Stack Overflow or respective owner

Related posts about wcf

Related posts about .net-4.0