在web.config配置文件中的configuration節點下添加以下節點:web
<system.webServer> <staticContent> <mimeMap fileExtension=".kml" mimeType="text/plain" /> </staticContent> </system.webServer>調試
IIS Express調試時就能夠支持kml擴展名文件訪問了io