在web.config配置文件中的configuration节点下添加以下节点:web
<system.webServer> <staticContent> <mimeMap fileExtension=".kml" mimeType="text/plain" /> </staticContent> </system.webServer>调试
IIS Express调试时就能够支持kml扩展名文件访问了io