I have an MVC3 website set up with only Windows Authentication enabled (so anonymous and forms are disabled). Whenever I try to hit the default page, something forwards me to this URL;
.../MyApp/Account/Login?ReturnUrl=%2fMyApp%2f
And I get an error;
The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /MyApp/Account/Login
There's nothing in my web.config which is configured to look for this URL, but there was a section about using forms authentication which I removed;
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
Should I have reconfigured this setting instead of removing it outright? I tried adding this in;
<authentication mode="Windows"></authentication>
But it still forwards back to the same place. Is there anything extra I should be doing here?