maartenba / MvcSiteMapProvider

An ASP.NET MVC SiteMapProvider implementation for the ASP.NET MVC framework.
Microsoft Public License
537 stars 220 forks source link

Could not find file mvc.sitemap #490

Closed dailyUnknown closed 3 years ago

dailyUnknown commented 4 years ago

Hello,

After installing MvcSiteMapProvider.mvc5 via nuget, I get an exception when running my mvc site via localhost and the error stating that "Could not find file 'C:\Users...\Documents\Visual Studio 2017\Projects....\Mvc.sitemap'."

I followed the intructions here: https://web.archive.org/web/20160424031041/http://www.shiningtreasures.com:80/post/2013/08/07/MvcSiteMapProvider-40-a-test-drive

I also add this @Html.MvcSiteMap().SiteMapPath() to the layout file but no breadcrumb displayed.

Anybody know why?

Note: The installation went fine and I can see the MvcSiteMapProvider.dll file in the bin folder.

Help please. Thank you.

metalrose24 commented 4 years ago

You'll need to add the file to your project manually. The install via Nuget appears to be broken. You can take a sample of a site map file from the repo and go from there

dailyUnknown commented 3 years ago

Thank you metalrose24.