Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




2.0.3 stuck in a redirect loop

web-app

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
colinbo
Replies (27)
helpful
0
not helpful

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.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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="" />

  <httpModules>
   <add name="Session" type="System.Web.SessionState.SessionStateModule"/>
  </httpModules>

Allong of the httpModule from Gemini this would end up looking like the following:

  <httpModules>
   <add name="GeminiHttpModule" type="Gemini.GeminiHttpModule, CounterSoft.Gemini" />
   <add name="Session" type="System.Web.SessionState.SessionStateModule"/>
  </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


mkamonster
· 1
mkamonster
helpful
0
not helpful

Can you query the errorlog table and post the relevant errors please?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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


mkamonster
· 1
mkamonster
helpful
0
not helpful

Same error here.  As noted by Mark we used the new web.config as well.


colinbo
· 1
colinbo
helpful
0
not helpful

Hi -

I'm getting the same sort of thing w/ 2/0.3 and Windows Authentication (Not with forms authentication);

Firefox reports:
-----------------------------------------
The page isn't redirecting properly
---------------
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
 ---------------
   *   This problem can sometimes be caused by disabling or refusing to accept
          cookies.
-------------------------------------------------------------
 
IE just reports "page not found".

Since this has been sitting in the forums a while, perhaps we could get a status, or at least an additional info request???

Thanks,
Yarko


yarkot
· 1
yarkot
helpful
0
not helpful

Are you getting the same error messages in the error log table?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

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.


rsherman
· 1
rsherman
helpful
0
not helpful

[: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=localhost;initial catalog=Gemini;user id=sa;password=sa" -->

<add key="hibernate.connection.connectionstring" value="data source=tahiti;initial catalog=bugtracker202;user id=buguser;password=xxxxxxx" />
  <!-- Misc -->
  <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
  <add key="hibernate.connection.driverclass" value="NHibernate.Driver.SqlClientDriver" />
 </nhibernate>
 <appSettings>
 
    
  <!-- DatabaseConnection - The SQL Server database connection string -->
  <add key="DatabaseConnection" value="data source=tahiti;initial catalog=bugtracker202;user id=buguser;password=xxxxxx />

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 -->
  <add key="DatabaseConnection" value="data source=tahiti;initial catalog=bugtracker202;user id=buguser;password=xxxxxx />

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!


rsherman
· 1
rsherman
helpful
0
not helpful

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.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

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.


mkamonster
· 1
mkamonster
helpful
0
not helpful

Can you please paste the contents of your web.config file into an email and send it to: support@countersoft.com?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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>


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Thanks this solution did help.

Yours,

Mark Monster


mkamonster
· 1
mkamonster
helpful
0
not helpful

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


mkamonster
· 1
mkamonster
helpful
0
not helpful

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?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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


mkamonster
· 1
mkamonster
helpful
0
not helpful

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


mkamonster
· 1
mkamonster
helpful
0
not helpful

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?


palamangelus
· 1
palamangelus
helpful
0
not helpful

Are you using Windows Authentication?

If so, then make sure you untick the "Anonymous Access" from IIS directory security.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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!


alex_london
· 1
alex_london
helpful
0
not helpful

Are you using windows authentication?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Yes - and anonymous access is disabled, as suggested above.

Seems that when the problem happens, I'm able to resolve it by switching to forms-based authentication, forcing a reload of the app (by browsing to it),a nd switching back to windows authentication.

-Alex


alex_london
· 1
alex_london
helpful
0
not helpful

Ok, Try switching anonymous access on (if you can).

We will try and resolve this ASAP.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

OS:  Vista Ultimate
IIS:  IIS 7

Gemini 3.1 stuck in a redirect loop when it running in the DefaultAppPool.
Things gets OK if running in the "Classic .NET App Pool".

    <authentication mode="Forms">
      <forms name="Gemini31" loginUrl="Default.aspx" timeout="60" path="/"/>
    </authentication>
    <authorization>
      <deny users="?" />
    </authorization>


smartkid
· 1
smartkid
helpful
0
not helpful

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.


Krip
· 1
Krip
helpful
0
not helpful

Can you check with SQL profiler is Gemini hits the database?
It might be a database access issue. Also, make sure the application pool is not recycling too often.


Saar Cohen
· 5000
Saar Cohen