Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...sitemap.aspx on DNN5.0sitemap.aspx on DNN5.0
Previous
 
Next
New Post
2/11/2009 8:03 PM
 

also having the error. In IE and in google webmaster..

I've copied the 4.x   sitemap.aspx.vb  file for now. When 5.0.1 is out, we will see!

 
New Post
2/19/2009 9:12 PM
 
FIXED! 

Finally got it working on DNN5.0.

You need to make two small changes in SiteMap.aspx.vb to make it valid

on line 82 replace

Dim sb As New StringBuilder(1024)

on

Dim sb As New System.IO.MemoryStream

and on line 116 you need to change

Return sb.ToString

to

Return Encoding.UTF8.GetString(sb.ToArray())

you can check updated sitemap at www.lotteryuniverse.com/sitemap.aspx

IE shows it correctly now and http://www.validome.org/google/validate validated it as well.

Still waiting when google approves it though.

 
New Post
2/24/2009 9:05 AM
 

Thanks!!  That worked like a charm.  Nice find!!!

 
New Post
4/2/2009 7:38 AM
 

Hi -...  I'm using 5.0.1 and noticed that Google was throwing up an error about the SiteMap.aspx file:

Invalid XML attribute
The XML attribute of this tag was not recognized. Please fix it and resubmit.

I did a search and found this thread which gave me hope!  Unfortunately it looks like things have changed in 5.0.1 as the lines you refered  to I couldn't find in the SiteMap.aspx.vb file.

I checked my SiteMap.aspx in Firefox and this was the offending line:
<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9" url="http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

on your sitemap, which works, it is:
<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

So went in to my SiteMap.aspx.vb file and changed this:

writer.WriteAttributeString("xsi", "schemaLocation", Nothing, "http://www.sitemaps.org/schemas/sitemap/0.9")
writer.WriteAttributeString("", "url", Nothing, "http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd")

to this:

writer.WriteAttributeString("xsi", "schemaLocation", Nothing, "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd")

It now validates and seems to work fine with Google.  Not sure if this will be useful to others!

 

 
New Post
5/20/2009 5:16 PM
 
Thanks - worked fine for me in 5.0.1.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...sitemap.aspx on DNN5.0sitemap.aspx on DNN5.0


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out