C# 上载300kb文件失败,http错误404
我尝试上传文件大小:364kb,但得到http错误404。 我在web.config文件中添加了相关设置:C# 上载300kb文件失败,http错误404,c#,asp.net,file-upload,web-config,request,C#,Asp.net,File Upload,Web Config,Request,我尝试上传文件大小:364kb,但得到http错误404。 我在web.config文件中添加了相关设置: <location path="UploadFileServer.axd"> <system.web> <httpRuntime executionTimeout="999999" maxRequestLength="2097151" /> </system.web> </location>
<location path="UploadFileServer.axd">
<system.web>
<httpRuntime executionTimeout="999999" maxRequestLength="2097151" />
</system.web>
</location>
<system.web>
<httpRuntime executionTimeout="999999" maxRequestLength="50000"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" />
</requestFiltering>
</security>
</system.webServer>
但还是没有运气
有什么建议解释它为什么失败吗?
我做错什么了吗?404是“找不到文件”响应。你的URL错误,或者你希望在那里找到的文件不存在。文件在那里,当文件小于12kb时,一切正常。说明:对于大小大于maxAllowedContentLength的上传文件,IIS7将显示一个详细的错误页面,错误代码为404,子状态代码为13。错误页面可在C:\inetpub\custerr\en US\404-13.htmset maxAllowedContentLength至1073741824中找到,并检查是否工作请检查Metabase.xml文件中的AspBufferingLimit。请参考下面的URL:@ManojMevada,因为我读到AspBufferingLimit与响应相关,我没有成功发送请求。谢谢