.net - 如何将超过 2Gb 的文件上传到 IIS 7.5/.Net 4?

标签 .net asp.net iis upload

据我所知,IIS 和 ASP.NET 有 2Gb 文件上传的限制。在 IIS 7.5 和 .Net 4 中是否有任何解决方案?

最佳答案

我找到了一个 blog post这解释了神秘的错误“ASP.NET 在 URL 中检测到无效字符”。

来自博客文章:

When the integrated pipeline is used, we go though webengine code (webengine4!MgdGetRequestBasics) which doesn't support more than 2 GB content-length and a System.ArithmeticException exception is raised which subsequently cause the HTTP 400 error. With the classic pipeline, we don't use webengine4 but the old ASPNET_ISAPI model and we don't hit the above issue.



这篇文章还描述了作者如何能够上传大于 2 gig 的文件。

关于.net - 如何将超过 2Gb 的文件上传到 IIS 7.5/.Net 4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6802519/

相关文章:

c# - ADFS - Windows 集成 OR Forms 身份验证

.net - 我可以使用程序集不在 GAC 中的自定义保护提供程序加密 web.config 吗?

.net - 如何在 IIS 托管的 WCF 服务中实现许可证控制

iis - SSL 证书在 digicert 上显示不同

iis - 部署 .NET Core ASP.NET 网站 - HTTP 错误 502.5 - 进程失败

.net - 为什么设置后在 dot net 快捷方式中禁用了目标?

c# - 使用单声道从 C++ 传递 C# 枚举

c# - 在后台写入文件

c# - 从 telerik 网格中删除标题 (RAZOR)

c# - 在将发送到电子邮件的 html 中添加 css