据我所知,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/