title: ASP.Net login control will not work with Intelligencia.UrlRewriter
body: <p>I hope someone can help me shed some light on this nightmare I'm having...!</p>
  
  <p>I have just complete an ASP.Net e-commerce website with the help of an Apress book; The BalloonShop project, some of you might already know the one.</p>
  
  <p>Everything is fine and dandy apart from one niggle that I cant seen to sort out!</p>
  
  <p>I cannot logout from my site using the asp.net login control from any page that does not have the .aspx extension in the Url. This is namely; Departments, Category and Products as these are using the Intelligencia.UrlRewriter to provide browser friendly url's.</p>
  
  <p>My url's are rewritten perfectly, but when I try to logout from a page that is using the url rewriter it does not work, and I receive the following message in my error log email:</p>
  
  <pre><code>Exception generated on 22 February 2013, at 22:23
  
  Page location: /Triple-x/Dynamo-p4/?
  
  &lt;div id=":143"&gt;ProductId=4
  
  Message: The HTTP verb POST used to access path '/Triple-x/Dynamo-p4/' is not allowed.
  
  Source: System.Web
  
  Method: System.IAsyncResult BeginProcessRequest(System.Web.HttpContext, System.AsyncCallback, System.Object)
  
  Stack Trace:
  
  at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
  at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionSt    ep.Execute()
  at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)&lt;/div&gt;
  </code></pre>
  
  <p>In my web.config if have:</p>
  
  <pre><code>&lt;configSections&gt;
  &lt;section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler,Intelligencia.UrlRewriter" /&gt;
  &lt;/configSections&gt;
  
  &lt;rewriter&gt;
  &lt;!-- Rewrite department pages --&gt;
  &lt;rewrite url="^.*-d([0-9]+)/?$" to="~/Catalog.aspx?DepartmentID=$1" processing="stop" /&gt;
  &lt;rewrite url="^.*-d([0-9]+)/page-([0-9]+)/?$" to="~/Catalog.aspx?DepartmentID=$1&amp;amp;Page=$2" processing="stop" /&gt;
  &lt;!-- Rewrite category pages --&gt;
  &lt;rewrite url="^.*-d([0-9]+)/.*-c([0-9]+)/?$" to="~/Catalog.aspx?DepartmentId=$1&amp;amp;CategoryId=$2" processing="stop" /&gt;
  &lt;rewrite url="^.*-d([0-9]+)/.*-c([0-9]+)/page-([0-9]+)/?$" to="~/Catalog.aspx?DepartmentId=$1&amp;amp;CategoryId=$2&amp;amp;Page=$3" processing="stop" /&gt;
  &lt;!-- Rewrite product details pages --&gt;
  &lt;rewrite url="^.*-p([0-9]+)/?$" to="~/Product.aspx?ProductId=$1" processing="stop" /&gt;
  &lt;/rewriter&gt;
  
  &lt;system.webServer&gt;
  &lt;validation validateIntegratedModeConfiguration="false" /&gt;
  &lt;modules&gt;
    &lt;add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule" /&gt;
    &lt;remove name="ScriptModule" /&gt;
    &lt;!--&lt;add name="ScriptModule" preCondition="managedHandler" /&gt;--&gt;
  &lt;/modules&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>I am also using IIS7 on my local machine, and have read that this can sometimes be the cause re: AppPool version. I have tried changing this to Classic ASP as suggested, but this did not work for me!</p>
  
  <p>Does anyone know if this is a common problem when hosting on local machine and using Intelligencia.UrlRewriter? Would this possibly not be an issue if hosting on a shared web hosting server?</p>
  
  <p>If I'm way off the mark then please forgive my naivety, as I am still quite new to this, especially projects of this size.</p>
  
  <p>Thanks for you help!! </p>