c# - Error XmlSiteMapProvider does not exist -
///this agent.sitemap
<sitemapnode url="default.aspx#" title="start" description="start"> <sitemapnode url="~/dircommon/default.aspx" title="home" description="home" /> <sitemapnode url="diragent/profile.aspx#" title="agent" description="agent"> <sitemapnode url="diragent/profile.aspx" title="my profile" description="agent:my profile" /> <sitemapnode url="diruser/account.aspx" title="my account" description="agent:my account" /> <!--<sitemapnode url="diruser/downloads.aspx" title="downloads" description="agent:downloads" />--> </sitemapnode> <sitemapnode url="diragent/default.aspx" title="calls" description="calls"> <sitemapnode url="diragent/callqueue.aspx" title="call queue" description="agent:call queue" /> <sitemapnode url="diragent/mycalls.aspx" title="my calls" description="agent:my calls" /> <sitemapnode url="diragent/followupcalls.aspx" title="follow-up" description="agent:follow-up" /> <sitemapnode url="diragent/calls.aspx" title="call history" description="agent:call history" /> </sitemapnode> <sitemapnode url="diragent/default3.aspx" title="environment" description="environment"> <sitemapnode url="diragent/facilities.aspx" title="facilities" description="agent:facilities" /> <!--> <sitemapnode url="diragent/contacts.aspx" title="contacts" description="agent:contacts" /> <!--> </sitemapnode> </sitemapnode>
//this web.sitemap
<sitemapnode url="~/dircommon/default.aspx" title="home" description="home" />
//when run application iis getting error "agent.sitemap required xmlsitemapprovider not exist."
looks xmlsitemapprovider
configured in web.config (or code) use agent.sitemap instead of default ~/web.sitemap. check if reference , actual location of agent.sitemap correct!
Comments
Post a Comment