經過配置文件添加MIME類型

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

<system.webServer>
  <staticContent>
    <mimeMap fileExtension=".kml" mimeType="text/plain" />
  </staticContent>
</system.webServer>調試

IIS Express調試時就能夠支持kml擴展名文件訪問了io

相關文章
相關標籤/搜索