Re: sitemap provider error

Andrew Dunn <[email protected]> Thu, 17 Jul 2008 15:45:24 +1000
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <5B2CE496DCCE2040B271D9417E72CB28727F5F@bdbdc2.corporate.hcn.com.au>
Sorry, I figured it out the minute I sent it.
defaultProvider=3D"=3DBH_SiteMapProvider" should be
defaultProvider=3D"BH_SiteMapProvider"

-----Original Message-----
From: Discussion of building .NET applications targeted for the Web
[mailto:[email protected]] On Behalf Of Andrew Dunn
Sent: Thursday, 17 July 2008 3:44 PM
To: [email protected]
Subject: [DOTNET-WEB] sitemap provider error

Hello,

I have an error with the sitemap provider. This is my sitemap section in
the web.config file:

<siteMap defaultProvider=3D"=3DBH_SiteMapProvider" enabled=3D"true">
      <providers>
        <add name=3D"BH_SiteMapProvider"
             type=3D"System.Web.XmlSiteMapProvider, System.Web,
Version=3D2.0.0.0, Culture=3Dneutral,PublicKeyToken=3Db03f5f7f11d50a3a"
             securityTrimmingEnabled=3D"true"
             siteMapFile=3D"web.sitemap"/>
      </providers>
</siteMap>

When I run it I get the error:

The provider '=3DBH_SiteMapProvider' specified for the defaultProvider
does not exist in the providers collection.
(c:\inetpub\wwwroot\beerhouse\web.config line 156)

Could anyone point me how to fix this?

Andrew

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This list is hosted by DevelopMentor=AE  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com