Thanks for the tip on the MIME type. I found the x-Javascript by doing a search and this seemed to be the most common response. Type json also seems to work so I have changed it to be "more" correct.
--hm
From: | Harvey Mushman |
To: | Rick Strahl |
Thanks for the tip on the MIME type. I found the x-Javascript by doing a search and this seemed to be the most common response. Type json also seems to work so I have changed it to be "more" correct.
--hm
Yeah your old Windows 2000 servers are not going to have those mime types in it :-)
The correct content type for JSON is application/json, not application/x-javascript BTW...
Generally the Mime map in IIS only is important for file extension mappings. If you have a static file served with an unknown extension that isn't in the mime list IIS throws a 404.3.
+++ Rick ---
I have tried in both IE9 and Chrome 23.x. The error page suggests there is something wrong with MIME type or a Handler that is not configured correctly.
SOLUTION: Open IIS Configuration and scroll down to MIME Types. Double click to open and after double checking discovered JSON was not listed. After right clicking and selecting ADD, I entered the extentsion JSON and the application type as "application/x-javascript". This has fixed the problem for my localhost.
I just wonder if there is going to be a similar problem for client browsers who will be loading my pages over the Internet or if this is just a Intranet issue... time or someone much wiser <g> will tell!
--hm
PS - thanks for changing the icon to "new message", it almost got me again!<s>