SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a top navigation bar by implementing PortalSiteMapProvider and deploy it by a web scoped feature. if I create usual Site Collections Path-based SC it works and everything is ok, but if I create a Host-named site collection it generates

System.Web.HttpException the siteMapProvider MyTestTopNavProvider cannot not be found.

I have checked web.config file the provider is there.

thanks for your help.

share|improve this question
I think this is another case where the error is not indicative of the real problem. Could you give an example of a site collection address that works and one that does not? – spevilgenius Sep 13 '12 at 10:59
Hi, I solved this problem by adding host header to all host-named site collections on the web application. but I think it cannot be a good solution. – Medes Sep 13 '12 at 11:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.