Last post Sep 09, 2014 12:07 PM by Rion Williams
Sep 08, 2014 03:01 PM|JDawson01|LINK
I have developed a SignalR application which works fine when running under Visual Studio regardless of which browser is being used. However, when I published the app to full IIS on a 2008 R2 server (SP1) the application works fine on Chrome or Firefox but
not on IE 10.
I have attempted to install KB980368 but it states the patch is not applicable to my computer (Probably because SP1 is already installed), although the DLL versions are below the versions listed
in the KB article.
I have also installed json2.js and added the applicable references on the appropriate pages.
Does anyone know of something I might be missing?
Sep 08, 2014 03:08 PM|Rion Williams|LINK
Have you tried using the Developer Tools (F12) within your browser to see if there are any errors present within the Console section?
Sep 09, 2014 02:46 AM|Kevin Shen - MSFT|LINK
first ,please check that you have add the json2.js like below:
second ,Please check that if you have added the code to your page:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Last ,I suggest you can refer to the link about how to host SignalR in windows 2008 r2:
Sep 09, 2014 12:01 PM|JDawson01|LINK
I think found the problem,
I had a reference to json2 present as <script src="scripts/json2.js"></script>, but since this page was in a subfolder it couldn't find the json2.js file. I changed it to /scripts/json2.js and it started working.
Sep 09, 2014 12:07 PM|Rion Williams|LINK
The easiest way to resolve issues like this in the future would be to use either the ResolveUrl() method (for Web Forms) or the Url.Content() method (for MVC) to properly resolve the appropriate absolute URL so you don't have to worry about this
<!-- Web Forms Example -->
<script src='<%= ResolveUrl("~/scripts/json2.js") %>'></script>
<!-- MVC Example -->