<?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>IIS 7.0 - Application Request Routing (ARR)</title><link>http://forums.iis.net/1154.aspx</link><description>Maximize server resources, and increase application availability and scalability with Application Request Routing.  Use this forum to ask questions, discuss issues, request features, and get support.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: ARR proxying POST requests</title><link>http://forums.iis.net/thread/1904829.aspx</link><pubDate>Tue, 26 May 2009 18:29:48 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904829</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904829.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1904829</wfw:commentRss><description>&lt;p&gt;This turned out to be combination of using .Net 3.5 (which installs a managed module called ScriptModule which runs for all requests including non-asp.net requests) and &lt;a href="http://msdn.microsoft.com/en-us/library/1y89ed7z(VS.71).aspx" target="_blank"&gt;this asp.net tracing feature&lt;/a&gt;&amp;nbsp;- the combination caused asp.net to consume the request entity when the managed module was called.&amp;nbsp; The fix was to either turn off the tracing or to add a preCondition=&amp;quot;managedHandler&amp;quot; to the ScriptModule entry in system.webServer/modules.&amp;nbsp; The problem was not ARR specific in any way and would affect any non-asp.net content running in the same application with asp.net configured in this way.&lt;/p&gt;</description></item><item><title>Re: ARR proxying POST requests</title><link>http://forums.iis.net/thread/1904220.aspx</link><pubDate>Tue, 19 May 2009 16:41:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904220</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904220.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1904220</wfw:commentRss><description>&lt;p&gt;Please e-mail me the freb log with your original configuration to anil (dot) ruia (at) microsoft (dot) com - please make sure that the &amp;quot;RequestRouting&amp;quot; area is selected under &amp;quot;WWW Server&amp;quot; provider in the areas to log for your rule.&amp;nbsp; If that area does not show up (eg if you installed freb after installing ARR), you may have to run repair on the ARR setup.&lt;/p&gt;</description></item><item><title>Re: ARR proxying POST requests</title><link>http://forums.iis.net/thread/1904218.aspx</link><pubDate>Tue, 19 May 2009 16:34:34 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904218</guid><dc:creator>njhansen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904218.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1904218</wfw:commentRss><description>&lt;p&gt;Making&amp;nbsp;it a global rule, at least&amp;nbsp;on first attempt, did not work; I get&lt;/p&gt;
&lt;p&gt;The virtual path &amp;#39;null&amp;#39; maps to another application, which is not allowed.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll poke at it a bit to see whether I can get it to work.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I had already looked at the failed request log, but perhaps I missed something important. As&amp;nbsp;expected, it is returning a 502.3 with an error&amp;nbsp;code indicating connection timeout.&amp;nbsp;Is there something else in particular I should look for? The whole thing is obviously quite long, but here is the section related to the error itself:&lt;/p&gt;
&lt;p&gt;
&lt;table style="WIDTH:100%;BORDER-COLLAPSE:collapse;TABLE-LAYOUT:fixed;" cellspacing="0" cellpadding="0"&gt;

&lt;tr&gt;
&lt;td&gt;282.&lt;/td&gt;
&lt;td&gt;&lt;font style="COLOR:yellow;FONT-SIZE:20pt;FONT-WEIGHT:normal;TEXT-DECORATION:none;" face="webdings"&gt;r&lt;/font&gt;&lt;/td&gt;
&lt;td class="event-name"&gt;MODULE_SET_RESPONSE_ERROR_STATUS&lt;br /&gt;&lt;b&gt;Warning&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;pre class="pre-event-data"&gt;ModuleName=&amp;quot;ApplicationRequestRouting&amp;quot;, Notification=&amp;quot;EXECUTE_REQUEST_HANDLER&amp;quot;, HttpStatus=&amp;quot;502&amp;quot;, HttpReason=&amp;quot;Bad Gateway&amp;quot;, HttpSubStatus=&amp;quot;3&amp;quot;, ErrorCode=&amp;quot;2147954417&amp;quot;, ConfigExceptionInfo=&amp;quot;&amp;quot;&lt;/pre&gt;&lt;/td&gt;
&lt;td&gt;16:17:58.434&lt;/td&gt;&lt;/tr&gt;
&lt;tr class="alt"&gt;
&lt;td&gt;283.&lt;/td&gt;
&lt;td&gt;&lt;font style="COLOR:yellow;FONT-SIZE:20pt;FONT-WEIGHT:normal;TEXT-DECORATION:none;" face="webdings"&gt;r&lt;/font&gt;&lt;/td&gt;
&lt;td class="event-name"&gt;SET_RESPONSE_ERROR_DESCRIPTION&lt;br /&gt;&lt;b&gt;Warning&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;pre class="pre-event-data"&gt;ErrorDescription=&amp;quot;The operation has been canceled
&amp;quot;&lt;/pre&gt;&lt;/td&gt;
&lt;td&gt;16:17:58.434&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see anything obviously related to any ASP.Net code running in the log, but your explanation sounds at least plausible. I&amp;#39;m not sure how to prevent it, though, since the proxied page is .HTML, not .ASPX, so it shouldn&amp;#39;t be invoking the .Net handler anyway. The handler before ARR touches it is SSI-htm.&lt;/p&gt;</description></item><item><title>Re: ARR proxying POST requests</title><link>http://forums.iis.net/thread/1904211.aspx</link><pubDate>Tue, 19 May 2009 15:57:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904211</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904211.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1904211</wfw:commentRss><description>&lt;p&gt;It is possible that your asp.net application is reading the form content and hence it is not available for ARR to send - can you collect &amp;quot;failed request tracing&amp;quot; log for the request in question - just use 200-999 status-code as the failure condition.&amp;nbsp; One possible workaround for this may be to use globalRules instead of rules in url-rewrite - this will cause the url to be rewritten much earlier and should cause asp.net code to not even be invoked.&lt;/p&gt;</description></item><item><title>ARR proxying POST requests</title><link>http://forums.iis.net/thread/1904208.aspx</link><pubDate>Tue, 19 May 2009 15:26:21 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904208</guid><dc:creator>njhansen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1904208.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1904208</wfw:commentRss><description>&lt;p&gt;I think I might have run across a bug in ARR, but I&amp;#39;m not certain.&lt;/p&gt;
&lt;p&gt;We&amp;nbsp;have a folder &amp;lt;mydomain&amp;gt;/script that is an application folder; it contains several ASP.Net pages. I also have a rule to proxy everything that is &lt;em&gt;not&lt;/em&gt; an ASP.Net page to another server. We are in the midst of translating from an older web technology to .Net, and the pages that are not yet translated need to be served by the old server.&lt;/p&gt;
&lt;p&gt;All is well as long as the HTTP request is a GET; as soon as I POST, though, I get a 502.3 gateway timeout. A packet trace indicates that IIS is relaying the headers, but not the form content. Since the backend server never receives the form data,&amp;nbsp;it never responds.&lt;/p&gt;
&lt;p&gt;All is also well for several other folders that are not application folders. In order to replicate the issue, the folder in question seems to need to be an application, and the request a POST.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been able to get parts of it to work (by faking rules for another previously unused and completely non-existent folder that point to the backend server), but a complete solution would probably involve refactoring one project or the other.&lt;/p&gt;
&lt;p&gt;Configuration items to do the proxy below:&lt;/p&gt;
&lt;p&gt;From applicationHost.config:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;applicationRequestRouting&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;protocol httpVersion=&amp;quot;Http11&amp;quot; keepAlive=&amp;quot;true&amp;quot; preserveHostHeader=&amp;quot;false&amp;quot; reverseRewriteHostInResponseHeaders=&amp;quot;true&amp;quot; addXForwardedForHeader=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/applicationRequestRouting&amp;gt;&lt;br /&gt;&lt;br /&gt;Associated URLRewrite rule&amp;nbsp;from web.config:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rule name=&amp;quot;PCC A4D&amp;quot; enabled=&amp;quot;true&amp;quot; stopProcessing=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;match url=&amp;quot;^script/(.*)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&amp;quot;{REQUEST_URI}&amp;quot; negate=&amp;quot;true&amp;quot; pattern=&amp;quot;.*(\.aspx|\.axd).*&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;&lt;a href="http://testa4d.pcci.edu/4DCGI/%7BR:1"&gt;http://testa4d.pcci.edu/4DCGI/{R:1&lt;/a&gt;}&amp;quot; appendQueryString=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rule&amp;gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Is this a known issue?&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Is there some better workaround than moving the project into another folder to remove the conflict (and trying to find all the links that the move breaks)?&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</description></item></channel></rss>