![](/img/trans.png)
[英]HTTP Error 500.32 - ANCM Failed to Load dll after deploying a Self Contained .Net Core 3.1 App to Azure
[英]413 error after deploying to app service .Net Core 3.1, React
我有一個允許上傳 pdf 文件的 API。 如果我嘗試上傳超過 30mb 的文件,它會在 azure 日志中拋出錯誤“IIS7 413error”。 但是當我通過郵遞員時,同樣的代碼也能工作。 我的代碼中有這些屬性[RequestFormLimits(MultipartBodyLengthLimit =209715200)] [RequestSizeLimit(209715200)] [DisableRequestSizeLimit()]
但這在部署后無濟於事。 此外,如果我需要更改前端的任何內容,我不確定,任何幫助將不勝感激,謝謝
通過添加這些配置解決了該問題 - 參考此鏈接enter code here
https://www.ryadel.com/en/http-error-413-request-entity-too-large-fix/
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.