title: Allow anonymous access to controller action
body: <p>I need to allow controller action for any user without login.</p>
  
  <pre><code>public class ItemController : Controller
      {
         public ActionResult WebGallery()
          {
             //code goes here
              return View("WebGallery");
          }
  }
  </code></pre>
  
  <p>I tried the below code in my web.config but still redirected to the login page.</p>
  
  <pre><code>  &lt;location path="~/Item/WebGallery"&gt;
      &lt;system.web&gt;
        &lt;authorization&gt;
          &lt;allow users="*" /&gt;
        &lt;/authorization&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
  </code></pre>
  
  <p>I use forms authentication but does not use role base authentication so i can not use  <code>[Authorize]</code></p>