2012-07-02 88 views
5

maxAllowedContentLength應該可以在IIS 7+服務器上工作,但顯然我的服務器在上傳時不想考慮這個值(ASP.NET MVC 3網站)。現在我在web.config中包含了maxRequestLength,所有的東西都開始工作,並且這個值已經被應用了。然而,每個人都在說maxAllowedContentLength是正確的。maxRequestLength與IIS 7.5上的maxAllowedContentLength

有沒有人對此行爲有過解釋?

+0

不知道,但,maxRequestLength的是kb和maxAllowedContentLength是以字節爲單位。也許測試文件的問題? – dotjoe

+5

看看這個答案的類似帖子。 [最大長度] [1] [1]:http://stackoverflow.com/questions/6327452/which-gets-priority-maxrequestlength-or-maxallowedcontentlength –

+0

感謝克里斯指出這出 – mare

回答

相關問題