Hi, I was able to figure out why I am being redirected to the login page repeatedly. The problem is with the web.config file. The original configuration was: <authentication mode="Forms"> <forms name="TestApp" loginUrl="Login.aspx" protection="All" timeout="20" /> </authentication> <authorization> <deny users="?"/> <!--Deny anonymous users --> </authorization>
The new Configuration is: <authentication mode="Forms"> <forms name="TestApp" loginUrl="Login.aspx" protection="All" timeout="20" /> </authentication> <authorization> <allow users="*" /> <!-- Allow all Users --> <deny users="?"/> <!--Deny anonymous users --> </authorization> When using the original configuration, if some anonymous user tries to access a web page other than the login page (login.aspx) from browser history/ using the url directly, he will be redirected to the login page to login, and the user will be redirected back to the page he tried to access after he successfully logs-in. (All this worked in IIS, not in Apache). In the new configuration, the user is not redirected to the login page, but the page with some exceptions is shown since I use the data from the session cookies and variables passed from the login page, which are not initialized. I need it to work like the first scenario using Apache and aspdotnet module. (The new configuration works on both Apache and IIS). Can anyone figure out the problem in configuration? I still could not get the AliasMatch and the VS.net to work (Described in my post #58). Thanks in advance, Kishore ________________________________ Hi, I have a web site that is written in asp.net (.Net Version: 1.1.4322). I use SQL server 2000 as the database back end. The site is working fine under IIS 5.1 on Windows XP Professional with SP2 installed. I wanted to move the site to Apache and mod_aspdotnet module. I installed the Version 2.0.0 for aspdotnet module and the 2.0.53 version for apache. How ever I was not able to configure Apache/aspdotnet combination to work properly. Here are the problems I am facing: I added the following code to httpd.conf file and restarted Apache AliasMatch "^/(?i)aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*)" \ "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4" I got the following error in the error log: File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/aspnet_client, referer: http://localhost/Web/Login.aspx When I changed the line to: AliasMatch ^/aspnet_client/system_web/1_1_4322/(.*) "C:/Windows/Microsoft.NET/Framework/v1.1.4322/ASP.NETClientFiles/$1" the error stopped appearing in the error.log file of Apache. The Login.aspx file checks the username and password against the set in SQL Server 2K and sends the user to http://localhost/Web/default.aspx Snapshot from Access.log file: 127.0.0.1 - - [28/Feb/2005:17:17:46 -0800] "GET /Web/Start.htm HTTP/1.1" 200 860 127.0.0.1 - - [28/Feb/2005:17:17:46 -0800] "GET /Web/Login.aspx HTTP/1.1" 200 2775 127.0.0.1 - - [28/Feb/2005:17:17:46 -0800] "GET /aspnet_client/system_web/1_1_4322/SmartNav.js HTTP/1.1" 304 - 127.0.0.1 - - [28/Feb/2005:17:17:46 -0800] "GET /aspnet_client/system_web/1_1_4322/SmartNav.htm HTTP/1.1" 304 - 127.0.0.1 - - [28/Feb/2005:17:17:46 -0800] "GET /Web/orange.GIF HTTP/1.1" 200 6240 127.0.0.1 - - [28/Feb/2005:17:17:52 -0800] "POST /Web/Login.aspx HTTP/1.1" 200 2871 127.0.0.1 - - [28/Feb/2005:17:17:52 -0800] "GET /Web/default.aspx HTTP/1.1" 302 172 127.0.0.1 - - [28/Feb/2005:17:17:52 -0800] "GET /Web/Login.aspx?ReturnUrl=%2fWeb%2fdefault.aspx HTTP/1.1" 200 2811 It shows that it successfully accessed the default.aspx file, but it is sending it back to login.aspx I tried to run the website in debug mode using VS 2003 and Apache as Webserver, but VS kept complaining that Webserver is running .Net version 1.0 and it would convert my project to version 1.0 from 1.1 (ASP.Net compatibility). Can any one figure out the problem? Thanks Kishore. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]