Hi,
I am using Visual studio 2019. I added a Web.sitemap to my ASP.net (mvc) solution and also added the sitemap tags to my Web.config (see code below). The questions I have are 1 - How do I test to see if my sitemap is correct and 2 - What do I assign in google search console? In the console, on the left, there is a tab titled "Sitemaps". And on the right is a textbox which accepts the website name. But no matter what I add, google says "couldn't fetch".
My Web.sitemap file...
<pre><?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/" title="Home" description="Test1">
<siteMapNode url="~/Home/Index" title="Upload Card" description="Description1" />
<siteMapNode url="~/Home/GradedCards" title="Graded Cards" description="Description2" />
</siteMapNode>
</siteMap>
My Web.config file snippet...
<system.web>
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.7.2" />
<siteMap defaultProvider="DefaultSiteMapProvider" enabled="true">
<providers>
<add name="DefaultSiteMapProvider"
type="System.Web.XmlSiteMapProvider"
siteMapFile = "Web.sitemap" />
</providers>
</siteMap>
</system.web>
What I have tried:
For testing my sitemap I went to
Validate XML Sitemap - XML Sitemaps Generator[
^] and I tried the following...For each of them, the site tells me that "Sitemap is valid No"
http:www.grademycardforfree.com/Web
http:www.grademycardforfree.com/Web.sitemap
http:www.grademycardforfree.com/Web.sitemap.XML
http:www.grademycardforfree.com/sitemap.XML
In my google search console, in the "Add a new sitemap" I've added the following... None of them worked either.
http:www.grademycardforfree.com/Web
http:www.grademycardforfree.com/Web.sitemap
http:www.grademycardforfree.com/Web.sitemap.XML
http:www.grademycardforfree.com/sitemap.XML
Any help is greatly appreciated!
Thanks
-Doug