【发布时间】:2012-09-13 01:33:34
【问题描述】:
添加到我的 web.config
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
</system.webServer>
允许我的应用程序在 Azure 上运行,但会导致我的远程 IIS 服务器崩溃,因为它已经包含在内。在这种特殊情况下,删除远程 IIS mimeType 是不切实际的。我最终使用了不同的 web.config
是否有另一种机制可以让我配置 Azure IIS mimeType,这样我就没有这个有问题的 web.config?
我想要一个可以在 Azure 和非 Azure 上运行的部署包。
【问题讨论】:
-
两个想法:web.config 转换,但这意味着不同的部署配置文件或 Azure 中对 web.config 进行必要调整的启动任务。
标签: azure web-config