Is your client looking for a programming or design skill that you don't have? Refer a project to us, earn up to $10,000 in referral commission.
Geekpedia Tutorials Home

Building a C# Chat Client and Server

Building a C# Chat Client and ServerA step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.

in C# Programming Tutorials

Getting Hard Drive Information

Getting Hard Drive InformationA C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.

in C# Programming Tutorials

UPS Shipping Calculator

UPS Shipping CalculatorThis tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.

in PHP Programming Tutorials

Create Your Own Rich Text Editor

Create Your Own Rich Text EditorCreating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.

in JavaScript Programming Tutorials
Programming Tutorials
IT Jobs
From CareerBuilder

The file web.sitemap required by XmlSiteMapProvider does not exist.

On Sunday, May 28th 2006 at 09:10 AM
By Andrew Pociu (View Profile)
***--   (Rated 3 with 6 votes)
More ASP.NET Resources
The most common case when the "The file web.sitemap required by XmlSiteMapProvider does not exist" error is received is when a SiteMap control was added to a WebForm, however you don't have a mandatory Web.sitemap file in the root of your web application.
To fix this error, make sure you have this file in the root directory, and that it is a valid XML file that has the website's sitemap defined. An example Web.sitemap file can be seen below:

<?xml version="1.0" encoding="utf-8" ?>

<siteMap xmlns="" >

    <siteMapNode url="Default.aspx" title="Geekpedia"  description="Home Page of ">

        <siteMapNode url="Register.aspx" title="Registration"  description="Register a new account." />

        <siteMapNode url="SignIn.aspx" title="Sign-In"  description="Sign-in into your existing account." />



Digg Digg It!     Reddit Reddit     StumbleUpon StumbleIt     Newsvine Newsvine     Furl Furl     BlinkList BlinkList

Rate Rate this Knowledge Base article
Comment Current Comments
by Yamini on Thursday, August 24th 2006 at 06:48 AM

I changed the default name for this file, and it gave me this error, and I changed it back to the default name and it worked. Point is, if the name cannot be changed, then why prompt? Also, what if I want to have user specific sitemaps based on their permissions? Is there some setting which needs to be changed?

by suresh on Thursday, November 16th 2006 at 09:31 AM

useful link

by Logan on Tuesday, June 19th 2007 at 08:57 AM

I didn't change the name of my web.sitemap file... Created it in Visual Web Developer 2005, set up the links, it all works when I build the site without debugging (I'm not debugging coz I don't want to create a web.config file yet), but as soon as I try to browse to the site's location on my machine, I get this error

by Killerdesign on Thursday, September 27th 2007 at 08:29 AM

I had the same problem. And it wasn't a problem at all. The only thing you should remember is your web.sitemap is supposed to be at the _ROOT_ folder, but not any other folder.

by kevinbianni on Friday, March 6th 2009 at 07:51 AM

the web.sitemap must be in the root folder of the whole site not just the working sub-folder.

by akhilesh yadav on Monday, August 2nd 2010 at 03:22 PM

please response that material which are asked.asking for somthing and response another thig .what is thi man/women?

by sangram on Monday, August 23rd 2010 at 04:00 PM

when i was studying 2.0 from wrox it worked fine then after few years when i try to practise it in my project i missed point that file name can not be modified that landed be in trouble,i tried different combination of xmldatasource,sitemapdatasource,sitemappath finally after googling got the right reason for error thanks.You saved by sleep.

by Ritu on Friday, September 3rd 2010 at 05:01 PM

Very fixed my error.

by Paul on Friday, January 28th 2011 at 01:29 PM

You can rename your sitemap but you need to specify it in web.config file like example below

<siteMap defaultProvider="Your_Anonymous_sitemap">
<add securityTrimmingEnabled="false" siteMapFile="~/anonymous.sitemap" name="Your_Anonymous_sitemap" type="System.Web.XmlSiteMapProvider"/>
<add securityTrimmingEnabled="true" siteMapFile="~/Your_loggedin.sitemap" name="loggedin_sitemap" type="System.Web.XmlSiteMapProvider"/>

by John on Friday, February 25th 2011 at 11:27 AM

@Kevinbianni - I understand the concept of having a sitemap in the ROOT directory, however, what if you have two separate projects with two separate sitemaps? For some reason, the name cannot be changed to the sitemap and I can't add it to the ROOT or it will replace my old sitemap and the other project will not work. Any ideas on how to fix this problem?

by souji on Wednesday, September 7th 2011 at 04:54 AM

Thanks for the solution

by low interest rate credit cards on Sunday, December 18th 2011 at 12:23 PM

sir free msdn visual stidio my email Id send and please give me the like to download MSDN Visual studio 6,......................

by medicine on Wednesday, April 11th 2012 at 05:44 AM

I would like to thank you for your nicely written post, its informative and your writing style encouraged me to read it till end. Thanks

by Tucson search engine optimization on Monday, April 16th 2012 at 07:28 AM

Thank you for sharing this with the users. Often we come across such technical glitches that actually takes time and effort to be fixed. Thankfully there are so many online resources available that you now easily find solutions.

by Alao on Thursday, August 30th 2012 at 10:54 AM

i take my web.sitemap to the root folder and its works fine.Thanks

Comment Comment on this Knowledge Base article
Name: Email:
Knowledge Base Related Knowledge Base Articles
There are no related KB articles.

Comment Related Source Code
There is no related code.

Comment Related Tutorials
There are no related tutorials.

Jobs ASP.NET Job Search
My skills include:

Enter a City:

Select a State:

Advanced Search >>
Discover Geekpedia