Hi Greg,
1. The configuration listed in http://msdn2.microsoft.com/en-us/library/ms178426.aspx is not a full list of web.config file. You need to add the sample section into web.config file and modify it. Here is an example:
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<siteMap>
<providers>
<add name="WebSite1SiteMap"
description="Default SiteMap provider."
type="System.Web.XmlSiteMapProvider"
siteMapFile="~/WebSite1/WebSite1.sitemap"
/>
<add name="WebSite2SiteMap"
description="Default SiteMap provider."
type="System.Web.XmlSiteMapProvider"
siteMapFile="~/WebSite2/WebSite2.sitemap"
/>
</providers>
</siteMap>
</system.web>
</configuration>
2. According to the configuration, there should be two sitemap files.
/WebSite1/WebSite1.sitemap
/WebSite2/WebSite2.sitemap
However only one is provided, intead there is a Web.sitemap file.
thompgm:
Web.sitemap
<?
xml version="1.0" encoding="utf-8" ?><
siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" ><
siteMapNode><
siteMapNode siteMapFile="~/WebSite1/WebSite1.sitemap"/><
siteMapNode siteMapFile="~/WebSite2/WebSite2.sitemap"/></
siteMapNode></
siteMap>/Website1/WebSite1.sitemap
<?
xml version="1.0" encoding="utf-8" ?><
siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" ><
siteMapNode provider="WebSite1SiteMap"><
siteMapNode url="Default.aspx" title="Default" description="Default of Site 1" /><
siteMapNode url="Default2.aspx" title="Default2" description="Default2 of Site 1" /><
siteMapNode url="Default3.aspx" title="Default3" description="Default3 of Site 1" /></
siteMapNode></
siteMap>
If this file is not configured in web.config, it will be be used by ASP.NET at all. Please check this too.
Zhao Ji Ma
Sincerely,
Microsoft Online Community Support
?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?