I'm in the process of learning ASP.NET and am still fairly new to the programming world.
While learning about authentication/authorization, I edited my sample app's web config file to enable forms authentication, and authorization to deny all non-logged in users. I created a blank Login.aspx form as well, but when I try to execute the app, no pages appear. IE shows:
"Page can't be displayed"
even though I'm told it should redirect to my Login.aspx file automatically. Other browsers such as Opera show:
"This webpage has a redirect loop"
This is what I have so far:
<system.web>
...
<authentication mode="Forms" />
<authorization>
<deny users="?" />
</authorization>
...
</system.web>
I tried adding the <forms> tag in between <authentication /> with loginUrl as Login.aspx, but still same error. I've also added the <location> tags to allow access to the App_Themes and Images folders.
I'm currently using VS Express 2013 for Web with IIS Express integrated.
Any help would be appreciated!