Click here to Skip to main content
14,766,145 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to use menu control using sitemap as it's data-source. The code fot it that i have put in web.config is as below:
<sitemap defaultprovider="XmlSiteMapProvider" enabled="true">
<providers>
<add name="XmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web" sitemapfile="Web.sitemap" />
</providers>
</sitemap>


On running the application I am getting an error:
Configuration Error
 Could not load file or assembly 'System.Web' or one of its dependencies. The system cannot find the file specified
Posted
Updated 6-Jun-10 21:16pm
v3
Comments
Sandeep Mewara 7-Jun-10 2:17am
   
Please don't use All CAPs next time to put up your question. It is taken as shouting out here!
dhage.prashant01 7-Jun-10 2:22am
   
oh, m sorry
m new, don't worry will learn slowly
btw do u know the ans..?

1 solution

I suppose you need to use fully qualified name of System.Web assembly.
<sitemap defaultprovider="XmlSiteMapProvider" enabled="true">
<providers>
<add name="XmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" sitemapfile="Web.sitemap" />
</providers>
</sitemap>
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900