Most of the time when people have problems with MIME types, is because IIS is not configured to serve a file with a certain MIME type, the http status code for that is 404.3
, Your 406 means the client has sends an http accept header
which is not understood by the server.
A typical accept header would be:
Accept: text/html,application/xhtml+xml,application/xml
nvtools
sends an accept header with a MIME type that the server does not know about, this explains why using a browser for the same request works fine. The browsers send a valid Accept header.
The accept header tells the server, that for this request the client accepts data in one or multiple MIME types.
You should sniff the network traffic to find out what Accept header is used by nvtools
, adding the MIME type used to the MIME type mapping in IIS does not help because those are for serving MIME types, not for Accept
ones.
You have two options:
Fix whatever the MIME type in the Accept header of nvtools
is.
This solution is an assumption of mine, I have not tested it. Add that MIME type used by nvtools
to Windows (not IIS) this is done by adding multiple entries under HKEY_CLASSES_ROOT
in the registry, but right now I don't remember the details. There is no way to configure Accept
MIME types in IIS so I assume adding it to Windows will be picked up by IIS as well.