Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 10th, 2009, 03:17 PM
Authorized User
 
Join Date: Oct 2008
Posts: 23
Thanks: 5
Thanked 0 Times in 0 Posts
Default Getting google to index asp.net site

Does anybody have any suggestions on handling googles insistence that i am redirecting every page? When run my link through Rex Swain's header viewer is I get a 200 response. See below:

HTTP/1.1·200·OK
Cache-Control:·no-cache,·no-store
Pragma:·no-cacheContent-Type:·text/html;·charset=utf-8
Expires:·-1
Server:·Microsoft-IIS/7.0
X-Powered-By:·UrlRewriter.NET·2.0.0
Set-Cookie:·.ASPXANONYMOUS=CRf5_lSwygEkAAAAY2Q0N2ZkZj YtYjMyMC00Y2Q2LWJjMWUtYzQ4ZmQ2NmNkMjViChwv1ybfpXSM czQXnU6onHCLwG41;·expires=Thu,·18-Feb-2010·04:44:03·GMT;·path=/;·HttpOnly
Set-Cookie:·ASP.NET_SessionId=xi2ylumwyclu2155mpep424 5;·path=/;·HttpOnly-AspNet-Version:·2.0.50727
Set-Cookie:·lastsearch=wheredata=Osseo,·MN·55369;· expires=Tue,·10-Dec-2019·18:04:03·GMT;·path=/
X-Powered-By:·ASP.NET
Date:·Thu,·10·Dec·2009·18:04:03·GMT
Connection:·close
Content-Length:·38500


Google's fetch reports this:
HTTP/1.1 302 FoundContent-Type: text/html; charset=utf-8Location: /(A(U7vZ11SwygEkAAAAMTRjZjI4MTAtMjc1YS00M2RhLTkyNjU tNDgzYWU5NjBkM2VmEH0pa4lKoYjKR8_2hJvzsjKqExI1))/showbusiness.aspx?id=6331511Server: Microsoft-IIS/7.0X-Powered-By: UrlRewriter.NET 2.0.0,ASP.NETDate: Thu, 10 Dec 2009 18:02:57 GMTContent-Length: 252<html><head><title>Object moved</title></head><body><h2>Object moved to <a href="%2f(A(U7vZ11SwygEkAAAAMTRjZjI4MTAtMjc1YS00M2 RhLTkyNjUtNDgzYWU5NjBkM2VmEH0pa4lKoYjKR8_2hJvzsjKq ExI1))%2fshowbusiness.aspx%3fid%3d6331511">here</a>.</h2></body></html>
This long string is obviously caused by asp.net or IIS7.
Surely, after all these years someone has a solution.
I am all ears. The pages work as designed as far as our users.
 
Old December 10th, 2009, 03:53 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

I'd try disabling URLRewriter.NET and see if it still happens.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old December 10th, 2009, 05:24 PM
Authorized User
 
Join Date: Oct 2008
Posts: 23
Thanks: 5
Thanked 0 Times in 0 Posts
Default Nice idea, but no cigar.

Quote:
Originally Posted by Lee Dumond View Post
I'd try disabling URLRewriter.NET and see if it still happens.
Lee thanks for the idea, but no go. Every head viewer online reports 200.
I smell anti-microsoft consipracy.

Dang.
 
Old December 10th, 2009, 05:40 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Well, 200 is what you want, right?

What I meant was to disable the URL Rewiter and then check the response from Google fetch (pretty sure you can use Webmaster Tools for that).

Not sure why you're getting a 302 from Google, but it appears that your rewriter is encoding the URL. That'd be your first clue.

/showbusiness.aspx?id=6331511 ==> ))%2fshowbusiness.aspx%3fid%3d6331511
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old December 11th, 2009, 09:57 AM
Authorized User
 
Join Date: Oct 2008
Posts: 23
Thanks: 5
Thanked 0 Times in 0 Posts
Default That is what i meant by no go

I did remove urlrewriter.net. So far, of all of the tools I could find only google complains.
I ran fiddler with and without urlrewriter (including the few pages i actually rewrite) and got 200 OK responses for every pages, webservice, image, etc. Everything I have read say fiddler is the tool. One header viewer i used actually lets you select the bot engine. I of course pickked googlebot and the pages came out 200 OK. Any other debug tools?
IIS7 config tricks? I have used the web.config settings of the original TBH, the added AJAX and my own app setteings. Messed around with cookieless options. I'm lost. I am not redirecting my pages.
 
Old February 9th, 2010, 12:25 AM
Authorized User
 
Join Date: Oct 2008
Posts: 23
Thanks: 5
Thanked 0 Times in 0 Posts
Default 302 solved!

Just want to update this old post with what worked for me in case any has the same issue. I had "UseDeviceProfile" for sessionsate, form auth,etc. Changed it to "UseCookies" and the 302 redirect went away. Site still works. If someone doesn't allow cookies, too bad.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I run or not run Google AD in my ASP.NET w mycwcgr ASP.NET 2.0 Professional 0 November 5th, 2007 07:18 AM
INFO: Adding Google Maps (New ASP.Net Control) jimibt BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 September 12th, 2007 03:18 AM
ASP.Net site timing out alex_read ASP.NET 1.0 and 1.1 Professional 2 January 29th, 2005 02:14 AM
Google Adsense for Search script in asp.net page claudew BOOK: ASP.NET Website Programming Problem-Design-Solution 6 September 20th, 2004 08:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.