asp.net mvc - RegisterRoutes and the MvcSiteMapProvider MVC 4 -


is prossible parse nodes of mvc.sitemap in registerroutes method? when try see root node (home). there no childs ... here's sitemap.

<mvcsitemap xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"         xmlns="http://mvcsitemap.codeplex.com/schemas/mvcsitemap-file-3.0"         xsi:schemalocation="http://mvcsitemap.codeplex.com/schemas/mvcsitemap-file-3.0 mvcsitemapschema.xsd"         enablelocalization="true">    <mvcsitemapnode controller="home" action="index" resourcekey="home">     <mvcsitemapnode controller="home" action="about" resourcekey="about"/>     <mvcsitemapnode controller="home" action="contact" resourcekey="contact"/>   </mvcsitemapnode>  </mvcsitemap> 

this not supported. mvcsitemapprovider uses request caching, not available until after application starts. if got around that, httpcontext not available in iis integrated mode.

besides, sitemap should based on routes, not other way around.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -