Click here to Skip to main content
15,877,384 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am developing website using vs2012,and in that i will upoload maximium size file so i set
XML
<requestLimits maxQueryString="90000" maxAllowedContentLength="-1073741824" />

in web config.If i run website in vs2012 i get this error like

VB
Config Error
   The 'maxAllowedContentLength' attribute is invalid. Not a valid unsigned integer


and my config setting is

XML
<requestFiltering allowDoubleEscaping="true">
    <requestLimits maxQueryString="90000" maxAllowedContentLength="-1073741824" />
  </requestFiltering>


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
Posted
Comments
Kornfeld Eliyahu Peter 13-Aug-14 5:40am    
You cant set it to a negative value!
Aravindba 13-Aug-14 6:05am    
yes thanx ,i will check with other project it have positive value,now it work

1 solution

Remove (-) sign from code

HTML
<requestlimits maxquerystring="90000" maxallowedcontentlength="1073741824" />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900