I have a .Net C Sharp page (aspx) serving up as a .kml file. On my localhost
and an internal test server the page serves correctly and opens Google
Earth. On my production server, I am served the aspx file.
I don't have kml in the MIME types on any of the servers and was wondering
what the difference could be and where I might need to look for differences
in the servers? (The production and test servers are on Win2003 and my
localhost XPsp2)
I am changing the header to
Response.ContentType="application/vnd.google-earth.kml+xml kml";
Response.AddHeader("Content-Disposition","inline;filename=location.kml");
and outputting the following
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Placemark>
<name>Casualty Location for PRESTIGE</name>
<visibility>1</visibility>
<description>
</description>
<LookAt>
<longitude>-9.85000000</longitude>
<latitude>43.01666667</latitude>
<range>50000</range>
<tilt></tilt>
<heading>0</heading>
</LookAt>
<styleUrl>#khStyle651</styleUrl>
<Point>
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<coordinates>-9.85000000,43.01666667,0</coordinates>
</Point>
</Placemark>
</kml>
Cheers!