Login

Username

Password





Register   Reset password

Get Cuyahoga at SourceForge.net. Fast, secure and Free Open Source software downloads

Forum

Welcome Guest Search | Active Topics | Members

Server response 302 when loading application first time Options
hobbis
Posted: Thursday, August 13, 2009 6:20:11 PM

Rank: Advanced Member
Groups: Member

Joined: 12/11/2007
Posts: 89
Points: 267
I have been investigating redirect errors with Cuyahoga sites and wondered if anyone could shed light on a strange problems.

I submitted a sitemap to google. But google bot is having problems indexing urls. My platform is Windows 2003 IIS6.

Now, using http://web-sniffer.net I can see that when load up a test url on a cuyahoga site, the response i get is 302 found. Then subsequent calls to the same url respond with 200 ok. I then recycle the application, load up the test url and exactly the same thing happens. First response 302, then the rest is 200 ok.

I have tried this fix as I thought it might be just the asp.net 2.0 problem:

http://www.kowitz.net/archive/2006/12/11/asp.net-2.0-mozilla-browser-detection-hole.aspx

But this did not fix it and i'm not sure because of the sntrange behaviour, that it is the same problem.

Can anyone shed light on this?

Web Developer, Kent - Coolbytes
martijnb
Posted: Friday, August 14, 2009 1:04:08 AM

Rank: Administration
Groups: Administration , Member

Joined: 12/30/2004
Posts: 1,674
Points: 1,824
Location: Wageningen (NL)
Cuyahoga sites always do a redirect after the first request. This is required because the NHibernate configuration can change during the first request and we don't want to end up with invalid sessions.

So, the 302 on the first request is by design.
hobbis
Posted: Friday, August 14, 2009 4:13:17 AM

Rank: Advanced Member
Groups: Member

Joined: 12/11/2007
Posts: 89
Points: 267
Thanks for reply Martijn. If this is the case, is anyone else experiencing same problems in google?

Web Developer, Kent - Coolbytes
goolz
Posted: Saturday, August 15, 2009 12:25:39 AM
Rank: Advanced Member
Groups: Member

Joined: 6/18/2007
Posts: 39
Points: 117
Hi

I had the same problem , and found this solution:
just copy the folder below in root.

Folder

Article
hobbis
Posted: Saturday, August 15, 2009 9:16:16 PM

Rank: Advanced Member
Groups: Member

Joined: 12/11/2007
Posts: 89
Points: 267
Thanks goolz but this is the fix I was on about in my first post. From the kowitz website. The links you have posted are essentially the same as mine.

The way I got around it was by not using the google sitemap module directly for google webmaster, but simply creating a plain xml file and copying the module output to this. Google appears to prefer this instead of the dynamic version. Because of the initial 302 response maybe.

Web Developer, Kent - Coolbytes
goolz
Posted: Tuesday, August 18, 2009 9:56:13 PM
Rank: Advanced Member
Groups: Member

Joined: 6/18/2007
Posts: 39
Points: 117
hobbis wrote:
Thanks goolz but this is the fix I was on about in my first post. From the kowitz website. The links you have posted are essentially the same as mine.


Ops

You are right , I just read the title,
I have no idea about this now,
I'm trying to find a solution.
kuduk
Posted: Wednesday, August 26, 2009 1:13:56 PM
Rank: Newbie
Groups: Member

Joined: 7/2/2009
Posts: 3
Points: 9
I'm getting same error. I hope we can find something in short time.
wassimn
Posted: Friday, February 12, 2010 5:41:14 AM
Rank: Newbie
Groups: Member

Joined: 5/11/2009
Posts: 9
Points: 27
Hi, Anyone was able to find the solution for this problem, I'm getting the same error too.
Constructor
Posted: Saturday, February 13, 2010 3:26:33 AM
Rank: Administration
Groups: Administration , Member

Joined: 10/7/2008
Posts: 505
Points: 1,515
Take the generated sitemap and create a static xml file.
wassimn
Posted: Sunday, February 14, 2010 2:19:46 PM
Rank: Newbie
Groups: Member

Joined: 5/11/2009
Posts: 9
Points: 27
Thank you, I'll try this solution hope it works.
wassimn
Posted: Sunday, February 14, 2010 2:40:07 PM
Rank: Newbie
Groups: Member

Joined: 5/11/2009
Posts: 9
Points: 27
My problem is basically the loading for the first time, I tried your solution but seems its not solving the long loading time when opening the page for the first time. Any other ideas
Constructor
Posted: Monday, February 15, 2010 10:57:21 AM
Rank: Administration
Groups: Administration , Member

Joined: 10/7/2008
Posts: 505
Points: 1,515
wassimn wrote:
My problem is basically the loading for the first time, I tried your solution but seems its not solving the long loading time when opening the page for the first time. Any other ideas


Have you tried to use precompilation to reduce first-load times?

I use web deployment projects: link

This helps with precompilation and other deplyment settings. You could also check here for more information.
wassimn
Posted: Tuesday, February 16, 2010 1:05:53 PM
Rank: Newbie
Groups: Member

Joined: 5/11/2009
Posts: 9
Points: 27
The problem is with the redirection, its taking forever. Tried to check headers using http://web-sniffer.net/ & http://loadimpact.com/ and both sites shows me the problem is in redirection not loading assemblies. My site I'm trying to build is limebox.me. Hope you can help me in that. sad
Constructor
Posted: Tuesday, February 16, 2010 2:25:41 PM
Rank: Administration
Groups: Administration , Member

Joined: 10/7/2008
Posts: 505
Points: 1,515
I made this post about a year ago. It may help:

There is an issue with ASP.NET HTML HTML32TextWriter from what I can make out is something like this.

When someone requests a page from the server hosting your site it is processed and when it comes to be dumped to the screen a specific version of HTML TextWriter is chosen to render the mark-up, based upon the browser requesting it (and it capabilities).

The HTML32TextWriter renders HTML equivalent to a version 3 browsers capability. The HTML32TextWriter has a bug (that was fixed in ASP.NET 3.5 sp1). The bug involves RewritePath method to grab the sessionid from the URL.

To actually get this bug would mean using a browser of such antiquity (user agent is of a 'version 3 browser', cookies turned off etc...) that the server uses the HTML32TextWriter. The search engine robots did exactly this..

Not sure this is the same issue, but I found it interesting.

The advice to fix was to force cookies in web.config form authentication
Use a '.browser' file
Upgrade environment to ASP.NET 3.5 sp1

http://www.polymorphicpodcast.com/shows/aspnetseo/


Take a look, it may be that (although I hope your hosting would have been upgraded to take care of this).

I did find the site VERY slow loading. I would advise looking at your hosting setup.
wassimn
Posted: Thursday, February 18, 2010 4:58:39 AM
Rank: Newbie
Groups: Member

Joined: 5/11/2009
Posts: 9
Points: 27
Do you recommend any hosting plan, to save time and hassle?? Because this seems an endless issue and I wont be able to fix it sad Did the browser file, changed the cookieless attribute in web.config. I dunno what else should I do.
Constructor
Posted: Thursday, February 18, 2010 10:18:24 AM
Rank: Administration
Groups: Administration , Member

Joined: 10/7/2008
Posts: 505
Points: 1,515
wassimn wrote:
Do you recommend any hosting plan, to save time and hassle?? Because this seems an endless issue and I wont be able to fix it sad Did the browser file, changed the cookieless attribute in web.config. I dunno what else should I do.


Try these: http://wiki.cuyahoga-project.org/Hosting%20Services.ashx

New hosting should increase speed lots.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Yet Another Forum.net version 1.9.0 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.