title: ACS installed but MVC 4.0 app still redirects and fails to find login.aspx
body: <p>First post here on stackoverflow but I love the site!...  </p>
  
  <p>I've successfully created a fully functioning Azure hybrid model application using MVC 4.  Published and works great.  Now I want to add ACS for auth to my site.  I've followed <a href="https://www.windowsazure.com/en-us/develop/net/how-to-guides/access-control/" rel="noreferrer">all the steps</a> but when I run the app in simulation it fails to re-direct to ACS and offers up the page stating that it couldn't find login.aspx.</p>
  
  <p>I have created a simple website solution just to prove that my ACS is setup correctly and it works just fine.  I noticed that the web.config files of the two solutions were wildly different.</p>
  
  <p>Anyone tried to do this yet?  Any help would be appreciated.</p>
  
  <p><strong>--------- Solution -----------</strong></p>
  
  <p>I finally got everything to work.  <strong>The key was to remove the WebMatrix.WebData references</strong> since I didn't need to do my own auth.  The following came from <a href="http://www.asp.net/whitepapers/mvc4-release-notes" rel="noreferrer">MVC4 Release notes.</a></p>
  
  <p>When WebMatrix.WebData.dll is included in in the /bin directory of an ASP.NET MVC 4 apps, it takes over the URL for forms authentication. Adding the WebMatrix.WebData.dll assembly to your application (for example, by selecting "ASP.NET Web Pages with Razor Syntax" when using the Add Deployable Dependencies dialog) will override the authentication login redirect to /account/logon rather than /account/login as expected by the default ASP.NET MVC Account Controller.</p>