I am not able to make my ASP.Net login page receive any postback the first time. My solution structure is as follows Root - Login/Login.aspx - UI/Homepage.aspx
When I start my asp.net website from visual studio, it shows the login.aspx page but the URL at the top of the browser says http://app.mysass.com and not http://app.mysass.com/Login/Login.aspx
The funny thing is if I click on the login button on this page, the page reload itself back to http://app.mysass.com. The server side button click is not even hit.
Only when I type in http://app.mysass.com/Login/Login.aspx and then click the login button then btn_click on postback gets fired on the server.
I am guessing this has go something to do with my web.config so here it is.
<configuration>
<system.web>
<authentication mode="Forms">
<forms loginUrl="~/Login/Login.aspx" name=".DEBUG" defaultUrl="~/UI/Homepage.aspx" protection="All" timeout="240" path="/" slidingExpiration="true" cookieless="UseCookies" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
</system.web>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="~/UI/Homepage.aspx" />
</files>
</defaultDocument>
</system.webServer>
<location path="Login" allowOverride="false">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>