signalr stops working in ie10

前提是你 提交于 2020-01-23 07:47:06

问题


I am trying to learn signalR and i have a little test working. It works in IE 9 and chrome but when i try to run it on ie10, i get t

Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without

in searching on this error it points to ie browsers before ie 8. hoping someone can help point me in the right direction. I have tried adding a json2.js file before the signalr and the error is still coming up.

thanks shannon

Here is the complete error as requested.

SCRIPT5022: SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8.

what you suggested seems to have fixed my problem. Thank you


回答1:


You should try adding

<meta http-equiv="X-UA-Compatible" content="IE=Edge" />

to your HTML page to force IE to be standards compliant. Also, can you post the full error.



来源:https://stackoverflow.com/questions/15818648/signalr-stops-working-in-ie10

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!