<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - Security</title><link>http://forums.iis.net/1043.aspx</link><description>Discussions around the security of IIS 7 including compentization, hidden directories, or authentication\authorization</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Changing maxAllowedContentLength</title><link>http://forums.iis.net/thread/1921247.aspx</link><pubDate>Mon, 19 Oct 2009 18:54:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921247</guid><dc:creator>mbarga1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1921247.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1921247</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m trying to load an app on a site for a server I just converted over from Windows 2003 to Windows 2008, I have tried changing this but I keep getting the same error.&lt;/p&gt;&lt;p&gt;http://www.element-it.com/RequestFilteringModule-maxAllowedContentLength.aspx&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 class="FAQ"&gt;&amp;quot;The request filtering module is configured to deny a request that exceeds the request content length&amp;quot;&lt;/h1&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The documentation from Microsoft says to change Applicationhost.config file but the file on my server doesn&amp;#39;t even have the record which would make it work.&amp;nbsp; The Web.Config file is set correctly there is nothing to change but it still will not let me upload more then 30 megs.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;http://support.microsoft.com/default.aspx?scid=kb;EN-US;295626 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any thoughts? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Changing maxAllowedContentLength</title><link>http://forums.iis.net/thread/1899104.aspx</link><pubDate>Thu, 02 Apr 2009 12:08:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1899104</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1899104.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1899104</wfw:commentRss><description>&lt;p&gt;Funny I just ran across this post and agree making the error more descriptive would help troubleshooting.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Changing maxAllowedContentLength</title><link>http://forums.iis.net/thread/1877105.aspx</link><pubDate>Mon, 18 Aug 2008 17:08:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1877105</guid><dc:creator>gcinseattle</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1877105.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1877105</wfw:commentRss><description>&lt;p&gt;Also, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;With respect to this limit can anyone imagine a way to change the error returned from IIS from the very vague &amp;quot;&lt;em&gt;HTTP Error 404.13 - Not Found&lt;/em&gt;&amp;quot; to something more relevant to the actual upload size error that actually occurs?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Changing maxAllowedContentLength</title><link>http://forums.iis.net/thread/1543499.aspx</link><pubDate>Mon, 22 Jan 2007 23:13:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1543499</guid><dc:creator>skumar2003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1543499.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1543499</wfw:commentRss><description>&lt;P&gt;Ok, I see that appCmd.exe modifies the applications web.config file with the required entries. Great, this is what I was looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;Shiv.&lt;/P&gt;</description></item><item><title>Re: Changing maxAllowedContentLength</title><link>http://forums.iis.net/thread/1543494.aspx</link><pubDate>Mon, 22 Jan 2007 23:07:46 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1543494</guid><dc:creator>skumar2003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1543494.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1543494</wfw:commentRss><description>&lt;P&gt;Thomas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I tried your suggestion and eventually got it working but have another question.&lt;/P&gt;
&lt;P&gt;What is the "unit of measure" for the maxAllowedContentLength attribute? In ASP.NET Web.config &lt;FONT color=#ff0000 size=2&gt;&lt;/P&gt;
&lt;P&gt;maxRequestLength&lt;/FONT&gt; is in KB. It looks like the maxAllowedContentLength is in bytes?&lt;/P&gt;
&lt;P&gt;Now in order to get your suggestion to work I had to modify the overrideModeDefault from&amp;nbsp;"Deny" to "Allow" like so:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;section&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;name&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;requestFiltering&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;overrideModeDefault&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Allow&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; /&amp;gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;I'm assuming this change&amp;nbsp;allows for "application level" control?&amp;nbsp;If so, can I not add my setting to the web.config file of the application in question?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had to "Allow&lt;/P&gt;</description></item><item><title>Re: Changing maxAllowedContentLength</title><link>http://forums.iis.net/thread/1543471.aspx</link><pubDate>Mon, 22 Jan 2007 22:49:34 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1543471</guid><dc:creator>skumar2003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1543471.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1543471</wfw:commentRss><description>&lt;P&gt;Thomas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your quick reply! I'll try your suggestion...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Is there a GUI that I can use to set this or config file local to my application that I can create in order to set this?&lt;/P&gt;
&lt;P&gt;Shiv.&lt;/P&gt;</description></item><item><title>Re: Changing maxAllowedContentLength</title><link>http://forums.iis.net/thread/1543458.aspx</link><pubDate>Mon, 22 Jan 2007 22:38:28 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1543458</guid><dc:creator>thomad</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1543458.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1543458</wfw:commentRss><description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;%windir%\system32\inetsrv\appcmd set config -section:requestFiltering -requestLim&lt;BR&gt;its.maxAllowedContentLength:1000000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;or if you only want to set it for your app:&lt;/P&gt;
&lt;P&gt;%windir%\system32\inetsrv\appcmd set config &lt;STRONG&gt;"Default Web Site/&amp;lt;your app&amp;gt;"&lt;/STRONG&gt; -section:requestFiltering -requestLimits.maxAllowedContentLength:1000000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Hope this helps&lt;/P&gt;</description></item><item><title>Changing maxAllowedContentLength</title><link>http://forums.iis.net/thread/1543441.aspx</link><pubDate>Mon, 22 Jan 2007 22:22:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1543441</guid><dc:creator>skumar2003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1543441.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1043&amp;PostID=1543441</wfw:commentRss><description>&lt;P&gt;I'm using VS.NET 2005 running on Vista.&lt;/P&gt;
&lt;P&gt;The issue pertains to being able to upload large files in an ASP.NET application when using IIS 7.0 (and not when using the development webserver).&lt;/P&gt;
&lt;P&gt;My Web.config file for my application I have:&lt;/P&gt;&lt;FONT color=#ff0000 size=2&gt;
&lt;P&gt;maxRequestLength&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;2097151&lt;/FONT&gt;&lt;FONT size=2&gt;" (the maximum allowed).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;However when uploading large files (I've tried with a 60MB file) I get this error from IIS 7.0:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;_________________________________________________________________________________________&lt;/P&gt;&lt;FONT size=2&gt;
&lt;H2&gt;&lt;I&gt;HTTP Error 404.13 - Not Found&lt;/I&gt;&lt;/H2&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif"&gt;
&lt;P&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Description:&lt;/FONT&gt;&lt;/B&gt; The request filtering module is configured to deny a request that exceeds the request content length. 
&lt;P&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Error Code:&lt;/FONT&gt;&lt;/B&gt; 0x00000000 
&lt;P&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Notification:&lt;/FONT&gt;&lt;/B&gt; BeginRequest 
&lt;P&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Module:&lt;/FONT&gt;&lt;/B&gt; RequestFilteringModule&lt;/P&gt;
&lt;P&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;What you can try:&lt;/FONT&gt;&lt;/B&gt; 
&lt;UL&gt;
&lt;LI&gt;Verify the configuration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLength setting in the applicationhost.config or web.config file. &lt;/LI&gt;&lt;/UL&gt;&lt;A href="http://go.microsoft.com/fwlink/?LinkID=62293&amp;amp;IIS70Error=404,13,0x00000000,6000"&gt;
&lt;P&gt;&lt;B&gt;&lt;FONT face=Verdana color=#000000&gt;More Information...&lt;/FONT&gt;&lt;/B&gt; &lt;/A&gt;This is a security feature. Do not change this feature unless the scope of the change is fully understood. You can configure the IIS 7.0 server to reject requests whose content length is greater than a specified value. If the request's content length is greater than the configured length, this error is returned. If the content length requires an increase, modify the configuration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLength setting. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;_________________________________________________________________________________________&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've never changed any setting in IIS 7.0 and so would appreciate it if someone can tell me how to change this setting.&lt;/P&gt;
&lt;P&gt;But more importantly, it seems that with IIS 7.0 we're now going to have to synchronize such settings in two places? Is that correct?&lt;/P&gt;
&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;
&lt;P&gt;Shiv&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description></item></channel></rss>