Azure webapp 拒绝 MIME 类型

Azure webapp denied MIME-Type

我是 运行 一个 Azure 网络应用程序,我将在其中调用一个 JSON 文件,但是当我尝试加载该文件时,我得到了 404.17。我已经尝试更新 web.config 概述 here,但是当我这样做时 web.config 杀死了我的网站,然后根本没有任何加载。我得到的错误 The page cannot be displayed because an internal server error has occurred.

<configuration>
   <system.webServer>
         <staticContent>
            <remove fileExtension=".woff" />
            <remove fileExtension=".woff2" />
            <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
            <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
            <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
            <mimeMap fileExtension=".webm" mimeType="video/webm" />
            <mimeMap fileExtension=".ogv" mimeType="video/ogg" />
         </staticContent>
   </system.webServer>
</configuration>

我也尝试了以下方法,这也导致网站崩溃。

<?xml version="1.0"?>

<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".json" mimeType="application/json" />
     </staticContent>
    </system.webServer>
</configuration>

我添加了 asp.net 扩展,我认为这对我来说已经解决了。