# View JSON in Internet Explorer 7-11

Hello guys,

you all know the problem, want to debug an application with IE and IE always wants to download the JSON file.

The other browsers like Chrome or Firefox are doing a better job here.

If you want that IE shows the JSON file without downloading it, here is a registry fix for it.

Create a new text document and insert this (Link: http://pastebin.com/B0BXG0N6):

Windows Registry Editor Version 5.00;
; Tell IE 7,8,9,10,11 to open JSON documents in the browser on Windows XP and later.
; 25336920-03F9-11cf-8FD0-00AA00686F13 is the CLSID for the "Browse in place" .
;
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00


Now rename the document to {FileName}.reg and save.

Run it and confirm the dialog.

*Thanks to Coding 101 from http://www.codeproject.com/Tips/216175/View-JSON-in-Internet-Explorer for the Script

# Problems in IE11 with compatibility mode?

0x800a01b6 – JavaScript runtime error: Object doesn’t support property or method ‘addEventListener’

Oops, you’re right that was a copy paste error. However I trigger the compatibility mode via the Settings Icon -> Compatibility View Settings -> Add the site in there.

From there on he doesn’t show the div whereas without the comp mode it works without any problems.

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">


is set.

# “Object doesn’t support this property or method” error in IE11

http://stackoverflow.com/questions/18829292/object-doesnt-support-this-property-or-method-error-in-ie11

Best way to solve this until a fix is available (if a fix comes) is to force IE compatibility mode on the user.

Use

<META http-equiv="X-UA-Compatible" content="IE=9>

ideally in the masterpage so all pages in your site get the workaround.

This works, just tested with IE11, I added it to the _Layout.cshtml page –  Manny Mar 27 at 16:37

http://stackoverflow.com/questions/24533729/jquery-2-1-1-in-ie9-get-error-0x800a01b6-microsoft-jscript-runtime-error-obj

You can add below code in your web config file for setting document mode:

<system.webServer>
<httpProtocol>