There appears to be some confusion in the post.
@deanfp
The googleindex issue is separate from the sitemap issue. Yeah I know, its fantastic. Sitemap.aspx AND googleindex.aspx both have issues.
So I basically had to fix the googleindex.aspx issue myself. I am all for support releasing a single patch for some issues, but sooner rather than later would be appreciated.
To Fix the googleindex.aspx I basically replaced the following code in the Page_Load method of googleindex.aspx.vb.
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Response.ContentType = "text/xml"
Response.ContentEncoding = New System.Text.UTF8Encoding()
Response.Write("<?xml version=""1.0"" encoding=""UTF-8""?>" & vbLf)
Response.Write("<sitemapindex xmlns=""http://www.sitemaps.org/schemas/sitemap/0.9"">" & vbLf)
Response.Write("<sitemap>")
Response.Write("<loc>" & AppLogic.GetStoreHTTPLocation(False) & "googletopics.aspx</loc>")
Response.Write("</sitemap>" & vbLf)
Response.Write(GoogleSiteMap.GetGoogleEntitySiteMap("category"))
Response.Write(GoogleSiteMap.GetGoogleEntitySiteMap("section"))
Response.Write(GoogleSiteMap.GetGoogleEntitySiteMap("manufacturer"))
Response.Write(GoogleSiteMap.GetGoogleEntitySiteMap("section"))
If AppLogic.m_ProductIsML() Then
Response.Write(GoogleSiteMap.GetGoogleEntitySiteMap("library"))
Response.Write(GoogleSiteMap.GetGoogleEntitySiteMap("genre"))
Response.Write(GoogleSiteMap.GetGoogleEntitySiteMap("vector"))
End If
Response.Write("</sitemapindex>")
End Sub
with
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Response.ContentType = "text/xml"
Response.ContentEncoding = New System.Text.UTF8Encoding()
Response.Write("<?xml version=""1.0"" encoding=""UTF-8""?>")
Response.Write("<sitemapindex xmlns=""http://www.sitemaps.org/schemas/sitemap/0.9"">" & vbLf)
Response.Write("<sitemap>")
Response.Write("<loc>" & AppLogic.GetStoreHTTPLocation(False) & "googletopics.aspx</loc>")
Response.Write("</sitemap>")
Response.Write(AppLogic.CategoryEntityHelper.GetEntityGoogleSiteMap(0, Localization.GetWebConfigLocale(), True, True))
Response.Write(AppLogic.SectionEntityHelper.GetEntityGoogleSiteMap(0, Localization.GetWebConfigLocale(), True, True))
Response.Write(AppLogic.ManufacturerEntityHelper.GetEntityGoogleSiteMap(0, Localization.GetWebConfigLocale(), True, True))
Response.Write(AppLogic.DistributorEntityHelper.GetEntityGoogleSiteMap(0, Localization.GetWebConfigLocale(), True, True))
If AppLogic.m_ProductIsML() Then
Response.Write(AppLogic.LibraryEntityHelper.GetEntityGoogleSiteMap(0, Localization.GetWebConfigLocale(), True, True))
Response.Write(AppLogic.GenreEntityHelper.GetEntityGoogleSiteMap(0, Localization.GetWebConfigLocale(), True, True))
Response.Write(AppLogic.VectorEntityHelper.GetEntityGoogleSiteMap(0, Localization.GetWebConfigLocale(), True, True))
End If
Response.Write("</sitemapindex>")
End Sub
Once I did this I was able to navigate to that page and get the proper xml. I submitted it to google and it didn't kick back any errors so I guess it's working?
As for the sitemap issue, I have been using the sitemap2.aspx. And commented out this line of code in sitemap2.aspx.vb
Code:
'SiteMap1.LoadXml(New AspDotNetStorefrontCore.SiteMap().Contents)
I would hate to think what I would do if I didn't have the source code. I mean we are already at the mercy of tech support but at least with the source you can try to deduce the issue on your own