andrea.roux 0 Newbie Poster

Hi

I created a main project (called the Portal) that has the sitemap and master page in it. I created a virtual path provider so that other projects/site can use the master page. I created a project called WebTest that uses the virtual path provider to get the master page of Portal. But WebTest now complains that it can't find the sitemap.

I want WebTest to use the sitemap of Portal. How do I do this.

I've tried adding the following code in the web.config file:

<siteMap defaultProvider="MainSiteMap">
  <providers>
    <add name="WebSiteMap" 
              type="System.Web.XmlSiteMapProvider" 
               siteMapFile="~/Tax.sitemap"/>
  </providers>
</siteMap>

I do not want to use Sharepoint. Is there an easier why to share the sitemap accross IIS?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.