CounterSoft User Forums

Welcome to CounterSoft User Forums Sign in | Join | Help
Home Forums

2.0.3 stuck in a redirect loop

Last post 12-27-2008, 3:00 AM by smartkid. 25 replies.
Page 1 of 2 (26 items)   1 2 Next >
Sort Posts:
  •  02-22-2006, 3:02 AM

    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?

  •  02-22-2006, 9:11 AM

    Re: 2.0.3 stuck in a redirect loop

    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.


  •  02-23-2006, 12:48 PM

    Re: 2.0.3 stuck in a redirect loop

    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

  •  02-23-2006, 1:47 PM

    Re: 2.0.3 stuck in a redirect loop

    Can you query the errorlog table and post the relevant errors please?
  •  02-24-2006, 7:42 AM

    Re: 2.0.3 stuck in a redirect loop

    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

  •  02-24-2006, 9:26 PM

    Re: 2.0.3 stuck in a redirect loop

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

  •  02-27-2006, 5:36 PM

    Re: 2.0.3 stuck in a redirect loop

    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
  •  02-27-2006, 6:34 PM

    Re: 2.0.3 stuck in a redirect loop

    Are you getting the same error messages in the error log table?
  •  02-27-2006, 8:03 PM

    Re: 2.0.3 stuck in a redirect loop

    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.

  •  02-27-2006, 10:21 PM

    Re: 2.0.3 stuck in a redirect loop: SOLVED!!!!!!!!!

    Big Smile [: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.connection_string" value="data source=localhost;initial catalog=Gemini;user id=sa;password=sa" -->

    <add key="hibernate.connection.connection_string" 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.driver_class" 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/fc_setup.exe

    Good luck everyone!

  •  02-27-2006, 11:04 PM

    Re: 2.0.3 stuck in a redirect loop: SOLVED!!!!!!!!!

    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.


  •  02-28-2006, 7:37 AM

    Re: 2.0.3 stuck in a redirect loop: SOLVED!!!!!!!!!

    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.
  •  02-28-2006, 3:19 PM

    Re: 2.0.3 stuck in a redirect loop: SOLVED!!!!!!!!!

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


  •  03-01-2006, 9:10 AM

    Re: 2.0.3 stuck in a redirect loop: SOLVED!!!!!!!!!

    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>


  •  03-01-2006, 12:39 PM

    Re: 2.0.3 stuck in a redirect loop: SOLVED!!!!!!!!!

    Thanks this solution did help.

    Yours,

    Mark Monster

Page 1 of 2 (26 items)   1 2 Next >
View as RSS news feed in XML