经过配置文件添加MIME类型

在web.config配置文件中的configuration节点下添加以下节点:web

<system.webServer>
  <staticContent>
    <mimeMap fileExtension=".kml" mimeType="text/plain" />
  </staticContent>
</system.webServer>调试

IIS Express调试时就能够支持kml扩展名文件访问了io

相关文章
相关标签/搜索