问题描述
嗨
我正在使用vs2012开发网站,并且我将upoload maximium size文件,所以我设置
Hi I am developing website using vs2012,and in that i will upoload maximium size file so i set
<requestLimits maxQueryString="90000" maxAllowedContentLength="-1073741824" />
在网络配置中。如果我在vs2012中运行网站,我会收到此错误,例如
in web config.If i run website in vs2012 i get this error like
Config Error
The 'maxAllowedContentLength' attribute is invalid. Not a valid unsigned integer
我的配置设置为
and my config setting is
<requestFiltering allowDoubleEscaping="true">
<requestLimits maxQueryString="90000" maxAllowedContentLength="-1073741824" />
</requestFiltering>
但是如果我在vs2010中设置相同的线然后它工作,它没有发送任何错误mag.i我得到相同的错误在这里提到像
[]
我检查请求过滤表单打开/关闭窗口控制面板,如此处提及 [ ]
注意:我使用vs2012,赢8位64位
问候
Aravind
But if i set same line in vs2010 then it work,it didnt send any error mag.i am get same error here mention like
http://stackoverflow.com/questions/4022434/how-to-set-the-maxallowedcontentlength-to-500mb-while-running-on-iis7[^]
And i check Request Filtering form turn windows on/off form control panel same like here mention http://www.iis.net/configreference/system.webserver/security/requestfiltering/requestlimits[^]
Note :I am use vs2012,win 8 64 bit
Regards
Aravind
推荐答案
<requestlimits maxquerystring="90000" maxallowedcontentlength="1073741824" />
这篇关于为什么不能使用vs2012在web配置中设置maxAllowedContentLength?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!