ファイルサイズをチェックするように、C#ファイルにファイル制限を既に設定しています
int filesize = personalFileUpload.PostedFile.ContentLength;
if (filesize <= 26214400)
{
}
また、私のWeb構成ファイルには、次のコードがあります。
<httpRuntime executionTimeout="9999" maxRequestLength="2097151" requestValidationMode="2.0"/>
と
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="104857600" />
</requestFiltering>
</security>
</system.webServer>
それでも、サイズが約 200 MB のファイルを添付すると、このエラーが発生します。
Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
1) 私のコードは正しいですか? 2) どのような変更を加える必要がありますか?