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

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

IIS Express调试时就可以支持kml扩展名文件访问了

相关文章:

  • 2021-09-25
  • 2021-09-11
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案