2.0.3 stuck in a redirect loop
Just upgraded to 2.0.3 as per the documentation instructions. Since upgrading I'm seeing a continual redirect loop when trying to access the app
GET /raid HTTP/1.1
Accept: /
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1)
Host: dev
Proxy-Connection: Keep-Alive
Authorization: NTLM (removed)
HTTP/1.1 301 Moved Permanently
Content-Length: 139
Content-Type: text/html
Location: http://dev/raid/
Server: Microsoft-IIS/6.0
Date: Wed, 22 Feb 2006 03:02:48 GMT
<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://dev/raid/">here</a></body>
GET /raid/ HTTP/1.1
Accept: /
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1)
Host: dev
Proxy-Connection: Keep-Alive
HTTP/1.1 302 Found
Date: Wed, 22 Feb 2006 03:03:00 GMT
Server: Microsoft-IIS/6.0
X-AspNet-Version: 1.1.4322
Location: http://dev/raid/Default.aspx?x=1
Set-Cookie: ASP.NET_SessionId=t3c1is554l2fuqylmif3td55; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 149
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href='http://dev/raid/Default.aspx?x=1'>here</a>.</h2>
</body></html>
GET /raid/Default.aspx?x=1 HTTP/1.1
Accept: /
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1)
Host: dev
Proxy-Connection: Keep-Alive
Cookie: ASP.NET_SessionId=t3c1is554l2fuqylmif3td55
HTTP/1.1 302 Found
Date: Wed, 22 Feb 2006 03:03:01 GMT
Server: Microsoft-IIS/6.0
X-AspNet-Version: 1.1.4322
Location: /raid/Main.aspx?x=1
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 136
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href='/raid/Main.aspx?x=1'>here</a>.</h2>
</body></html>
GET /raid/Main.aspx?x=1 HTTP/1.1
Accept: /
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1)
Host: dev
Proxy-Connection: Keep-Alive
Cookie: ASP.NET_SessionId=t3c1is554l2fuqylmif3td55
HTTP/1.1 302 Found
Date: Wed, 22 Feb 2006 03:03:01 GMT
Server: Microsoft-IIS/6.0
X-AspNet-Version: 1.1.4322
Location: http://dev/raid/Default.aspx?x=1
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 149
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href='http://dev/raid/Default.aspx?x=1'>here</a>.</h2>
</body></html>
GET /raid/Default.aspx?x=1 HTTP/1.1
Accept: /
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1)
Host: dev
Proxy-Connection: Keep-Alive
Cookie: ASP.NET_SessionId=t3c1is554l2fuqylmif3td55
HTTP/1.1 302 Found
Date: Wed, 22 Feb 2006 03:03:01 GMT
Server: Microsoft-IIS/6.0
X-AspNet-Version: 1.1.4322
Location: /raid/Main.aspx?x=1
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 136
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href='/raid/Main.aspx?x=1'>here</a>.</h2>
</body></html>
GET /raid/Main.aspx?x=1 HTTP/1.1
Accept: /
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727; InfoPath.1)
Host: dev
Proxy-Connection: Keep-Alive
Cookie: ASP.NET_SessionId=t3c1is554l2fuqylmif3td55
HTTP/1.1 302 Found
Date: Wed, 22 Feb 2006 03:03:01 GMT
Server: Microsoft-IIS/6.0
X-AspNet-Version: 1.1.4322
Location: http://dev/raid/Default.aspx?x=1
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 149
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href='http://dev/raid/Default.aspx?x=1'>here</a>.</h2>
</body></html>
Any thoughts on cause?
colinbo
· 1 |
|
Wednesday, February 22, 2006, 3:02:17 AM |
0
|
Are you using the new web.config or the old one? Please note that you must use the new 2.0.3 web.config as it has got some new settings. |
||||
|
0
|
I've got the same problem. Because of the installation of Sharepoint Server on the same machine, I have to add the following lines: <trust level="Full" originUrl="" /> Allong of the httpModule from Gemini this would end up looking like the following: <httpModules> I have used the new Web.config file, but it didn't work out. I hope there will soon be a solution to this problem. Regards, Mark Monster |
||||
|
0
|
Can you query the errorlog table and post the relevant errors please? |
||||
|
0
|
The errorlog table is full of the message: "SESSION loss detected (GetUserID) -- no User Identity!". I'm using Windows Authentication, I think this is usefull to know for reproducing the error. Yours, Mark Monster |
||||
|
0
|
Same error here. As noted by Mark we used the new web.config as well. |
||||
|
0
|
Hi - |
||||
|
0
|
Are you getting the same error messages in the error log table? |
||||
|
0
|
Argh! We are getting the same problem--you can get to the log in screen but if you try to log in you're stuck. The error message from the error log table (which is now chock full of these errors as it seems they get recorded at about 80 a second) SESSION loss detected (GetUserID) -- no User Identity! A work around would be appreciated. |
||||
|
0
|
[:D]The DB Connection keys have changed in 2.0.3. There are two references to it in previous web.configs, hibernate and the reg. connection string. Here is how it appears in ours in 2.0.2: <!-- The SQL Server database connection string --> <add key="hibernate.connection.connectionstring" value="data source=tahiti;initial catalog=bugtracker202;user id=buguser;password=xxxxxxx" /> Remove the following from your web.config file, and leave ONLY the reference to the hibernate.connection provider: <!-- DatabaseConnection - The SQL Server database connection string --> I saved the web.config without this extra key, reset IIS and was instantly brought to the site. I suggest you diligently go through your old and new web.config files and make sure you have one that LOOKS like 2.0.3's. There ARE changes that are NOT documented. I use a great tool called FileCompare which is free at http://www.script-debugger.com/download/fcsetup.exe Good luck everyone! |
||||
|
0
|
If people are still having problems with windows authentication and 2.0.3, can you please make sure that the new web.config file is used. Also make sure that "Anonymous Access" is NOT ticked in the directory security access options of IIS. If it still doesn't work, Can you please try and install: http://www.iewatch.com and send us the log this generates? This will help us with finiding the issue. Thanks. |
||||
|
0
|
This solution isn't going to work for us. We installed version 2.0.2 (never installed an older version), and the mentioned key "DatabaseConnection" is not in our config file. I think this is some other kind of problem that is solved by this solution. It is not the problem we have, the redirect loop. |
||||
|
0
|
Can you please paste the contents of your web.config file into an email and send it to: support@countersoft.com? |
||||
|
0
|
After looking at a couple of web.config files that people sent us, we noticed that the forms tag was missing. Please make sure it is still there even if you are using windows authentication. <!-- AUTHENTICATION (Gemini possible modes are "Windows", "Forms") --><authentication mode="Windows"> <forms name="Gemini203" loginUrl="Default.aspx" timeout="60" path="/"> </forms> </authentication> |
||||
|
0
|
Thanks this solution did help. Yours, Mark Monster |
||||
|
0
|
I'm sorry, I did get the same problem again. First it worked, then some users reported the application still showed version 2.0.2, strange, after a IE restart the application didn't start. I will send the web.config file. Yours, Mark Monster |
||||
|
0
|
You shoudl see 2.0.3 for sure. Did you reboot the web server? Your web.config file works fine for us if we comment out the following: <add name="Session" type="System.Web.SessionState.SessionStateModule"/> Do you get any errors in the error log? |
||||
|
0
|
Commenting out doesn't work: SESSION miss detected - key: PROJID 02/03/2006 09:12:55 SESSION loss detected (GetCurrentProjectID) 02/03/2006 09:12:55 SESSION loss detected (GetCurrentProjectName) 02/03/2006 09:12:55 SESSION loss detected (GetCurrentProjectID) 02/03/2006 09:12:55 SESSION miss detected - key: PROJNAME 02/03/2006 09:12:55 SESSION miss detected - key: PROJID 02/03/2006 09:12:55 Object reference not set to an instance of an object. at Gemini.SessionBag.SaveCurrentProject(ProjectEN data) at Gemini.Project.PageLoad(Object sender, EventArgs e) 02/03/2006 09:12:55 |
||||
|
0
|
I haven't commented out the line now. And this means when using Sharepoint Server on the same machine this line is needed in the Web.config file. Gemini 2.0.3 seems to work now, maybe a restart of the WWW-Service was needed. Normally this isn't needed for ASP.NET application, but now it is. Maybe this should be part of the upgrade process in the documentation. Yours, Mark Monster |
||||
|
0
|
I think this is only a temporary solution, as the issue comes up every few days or so (actually, as I write this, it's come up twice in the past hour). Iisreset always fixes it, but that obviously doesn't bode well as a long term solution. I am having the same issue as everyone else, 2.0.3, correct web.config, etc. And with the constant redirect and log tables filling up with SESSION loss detected (GetUserID) -- no User Identity! as well as numerous other SESSION loss entries. It moves from http://gemini to http://gemini/main.aspx?x=1 to http://gemini/default.aspx?x=1 then to main.aspx then to default.aspx, etc. The first time it hits main.aspx, it includes the following javascript code : <script type="text/javascript"> <!-- var theForm = document.forms['frmMain']; if (!theForm) { theForm = document.frmMain; } function doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } } // --> </script> Subsequent main.aspx pages do not include this blurb. The viewstate for the first page is also different than the viewstate for the additional pages. Has there been a definitive solution for this? |
||||
|
0
|
Are you using Windows Authentication? If so, then make sure you untick the "Anonymous Access" from IIS directory security. |
||||
|
0
|
This seems to be a problem with 2.0.4 too. A restart of IIS usually takes care of it in my case, but last night that wouldn't do it - neither would a server restart. However, it seems to be working again now, and I'm not sure what happened in the interim to fix it! |
||||
|
0
|
Are you using windows authentication? |
||||
|
0
|
Yes - and anonymous access is disabled, as suggested above. |
||||
|
0
|
Ok, Try switching anonymous access on (if you can). We will try and resolve this ASAP. |
||||
|
0
|
OS: Vista Ultimate |
||||
|
0
|
I'm having the same issue on a Windows Server 2008 machine with Gemini 2.0.2. None of the above ideas affect me. I'm in class .NET pool. nhibernate entry seems ok. We're using windows authentication. Anonymous is disabled and forms element still exists. Please help. |
||||
|
0
|
Can you check with SQL profiler is Gemini hits the database? |
||||
|