2014-01-24 61 views
0

找不到當我使用AJAX從DOTNET應用程序請求JSON文件中我得到這個錯誤:HTTP錯誤404.3 - 在DOTNET的

HTTP錯誤404.3 - 找不到

您請求無法送達的頁面由於擴展配置。如果頁面是腳本,請添加處理程序。如果文件應該被下載,添加一個MIME映射。

請分享解決方案

回答

0
Implement below code in `web.config` file. Use the file extension that you want to fetch 
For Example: here is .json file 

<system.webServer> 

<staticContent> 
    <remove fileExtension=".json" /> 
    <mimeMap fileExtension=".json" mimeType="application/json" /> 
    </staticContent> 

</system.webServer>