Hello Everyone,
I am new to ASP.net. I recently developed a application using VS2005 that uses a SQL database. This application contains a Login page Main.aspx. This page redirects to second page after authentication (avlActions.aspx) using FormsAuthentication.ReDirect. This works when i run application from VS2005 and locally on IIS after publishing it and putting it in virtual directory. Everything works ok locally. I use
http://10.0.0.2/ecs/main.aspx it opens login page and after i put in details it redirects to http://10.0.0.2/ecs/avlActions.aspx .. all good.
Now when i try to do the same from other machine on LAN it never redirects me from login page and stays on the same page
however the address bar shows http://10.0.0.2/ECS/Main.aspx?ReturnUrl=%2fECS%2favlActions.aspx but the displayed page is still main.aspx. I have 3 computers and i have tried this from other 2 with same luck.
when i type in http://10.0.0.2/ecs/main.aspx from other machine from network it asks me for password to 10.0.0.2 first which i supply (username ,password to windows Xp account on 10.0.0.2) now main.aspx the login page opens.
Other info regarding things :-
10.0.0.1 is netgear router
10.0.0.2 is machine hosting the application
IIS on host is set to Integrated windows authentication only.
ASP.net has full access to Physical directory and is been made part of admin group
this is my web config file :-
<authentication mode="Forms">
<forms loginUrl="Main.aspx" name=".ASPXFORMSAUTH" protection="Validation" timeout="30" path="/" defaultUrl="avlActions.aspx">
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<compilation defaultLanguage="C#" debug="true"/>
<sessionState mode="InProc" cookieless="false" timeout="60"/>
</system.web>
<location path="Images">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="changePass.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<location path="avlActions.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<location path="new-header.gif">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="RealistixSoftLogoHz.JPG">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="createNew.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
</configuration>
hoping for a reply soon. Thanks in advance guys.