I've just suffered this, too!
Loading a static KML from an IIS 6 web server directly into GE (from a NetworkLink), IIS returns HTTP 406 Not Acceptable to Google Earth because the mime-types that GE sends in its Accepts: Request aren't matched to the Mime-Types that IIS is prepared to deliver.
This appears to be a problem with IIS getting confused about its registered Mime-Types either in the server-wide Mime-types settings, or the ones covering the individual sites or even directories.
The same download works when tried from a 'proper' browser such as IE or Firefox.
When I saw this I ran Ethereal on the client and snooped the conversation between GE and IIS.
Everything looked okay but IIS was logging 406 consistently on all virtual hosts so I deleted the Mime-Type mapping for KML, and tried again.
This time IIS reported 404 Not Found.
I then added the Mime-Type (.kml="application/vnd.google-earth.kml+xml") back in and tried again, and it worked.
I hope this helps someone else in the future because its an obscure bug to track down. I just wish I could work out why GE failed but other browsers didn't.
TJ.
------ 406 Not Acceptable --------------
Hypertext Transfer Protocol
GET /play/test.kml HTTP/1.1\r\n
Request Method: GET
Request URI: /play/test.kml
Request Version: HTTP/1.1
Accept: text/plain, text/html, text/xml, text/xml-external-parsed-entity, application/octet-stream, application/vnd.google-earth.kml+xml, application/vnd.google-earth.kmz, image/*\r\n
Cache-Control: no-cache\r\n
User-Agent: kh_lt/LT3.0.0616\r\n
Host:
lan.tjworld.net\r\n
Connection: Keep-Alive\r\n
\r\n
Hypertext Transfer Protocol
HTTP/1.1 406 Not Acceptable\r\n
Request Version: HTTP/1.1
Response Code: 406
Content-Length: 1713\r\n
Content-Type: text/html\r\n
Server: Microsoft-IIS/6.0\r\n
X-Powered-By: TJ's Whacky Ideas\r\n
PICS-Label: (PICS-1.0 "
http://www.rsac.org/ratingsv01.html" l by "
webm...@tjworld.net" on "2005.10.13T12:53+0100" exp "2006.12.31T12:00+0100" r (v 0 s 0 n 0 l 0))\r\n
Date: Wed, 19 Oct 2005 01:38:29 GMT\r\n
\r\n
------- 404 Not Found ----------------
Hypertext Transfer Protocol
GET /play/test.kml HTTP/1.1\r\n
Request Method: GET
Request URI: /play/test.kml
Request Version: HTTP/1.1
Accept: text/plain, text/html, text/xml, text/xml-external-parsed-entity, application/octet-stream, application/vnd.google-earth.kml+xml, application/vnd.google-earth.kmz, image/*\r\n
Cache-Control: no-cache\r\n
User-Agent: kh_lt/LT3.0.0616\r\n
Host:
lan.tjworld.net\r\n
Connection: Keep-Alive\r\n
\r\n
Hypertext Transfer Protocol
HTTP/1.1 404 Not Found\r\n
Request Version: HTTP/1.1
Response Code: 404
Cache-Control: max-age=60\r\n
Content-Length: 1635\r\n
Content-Type: text/html\r\n
Server: Microsoft-IIS/6.0\r\n
X-Powered-By: TJ's Whacky Ideas\r\n
PICS-Label: (PICS-1.0 "
http://www.rsac.org/ratingsv01.html" l by "
webm...@tjworld.net" on "2005.10.13T12:53+0100" exp "2006.12.31T12:00+0100" r (v 0 s 0 n 0 l 0))\r\n
Date: Wed, 19 Oct 2005 01:42:50 GMT\r\n
\r\n
------ 200 OK --------------
Hypertext Transfer Protocol
GET /play/test.kml HTTP/1.1\r\n
Request Method: GET
Request URI: /play/test.kml
Request Version: HTTP/1.1
Accept: text/plain, text/html, text/xml, text/xml-external-parsed-entity, application/octet-stream, application/vnd.google-earth.kml+xml, application/vnd.google-earth.kmz, image/*\r\n
Cache-Control: no-cache\r\n
User-Agent: kh_lt/LT3.0.0616\r\n
Host:
lan.tjworld.net\r\n
Connection: Keep-Alive\r\n
\r\n
Hypertext Transfer Protocol
HTTP/1.1 200 OK\r\n
Request Version: HTTP/1.1
Response Code: 200
Cache-Control: max-age=60\r\n
Content-Length: 933\r\n
Content-Type: application/vnd.google-earth.kml+xml\r\n
Last-Modified: Wed, 19 Oct 2005 01:11:47 GMT\r\n
Accept-Ranges: bytes\r\n
ETag: "adf713144ad4c51:394"\r\n
Server: Microsoft-IIS/6.0\r\n
X-Powered-By: TJ's Whacky Ideas\r\n
PICS-Label: (PICS-1.0 "
http://www.rsac.org/ratingsv01.html" l by "
webm...@tjworld.net" on "2005.10.13T12:53+0100" exp "2006.12.31T12:00+0100" r (v 0 s 0 n 0 l 0))\r\n
Date: Wed, 19 Oct 2005 01:44:25 GMT\r\n
\r\n