Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: JSON Generating Error 404.3 Meaasge

$
0
0
Re: JSON Generating Error 404.3 Meaasge
Web Connection 5.0
Re: JSON Generating Error 404.3 Meaasge
Dec. 9, 2012
02:23 pm
3NW0UTYYNShow this entire thread in new window
Gratar Image based on email address
From:Harvey Mushman
To:Rick Strahl
Ha-ha, you are funny! Those Win2k systems were retired years ago. If you want to give me a hard time for not upgrading from Win03... that is another story. <g>

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've written a WC page that generates a JSON file used to populate a Google map. I'm running it on my localhost under Win7. The script map and page are displaying fine but the jQuery code that is trying to load the JSON file is returning an error. When I try and access the JSON file from the browser address box, I get the 404.3 error yet when I try and use the physical address the data file loads and displays without any problem.

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>




Viewing all articles
Browse latest Browse all 10393

Trending Articles