Note that there are some explanatory texts on larger screens.

plurals
  1. POMvcSiteMapProvider - not generating sitemap.xml
    text
    copied!<p>Edit: It seems like there is trouble with my Routeconfig.cs. When I removed everything except the most basic routing I can find my sitemap.xml. I'll investigate and come back with an answer.</p> <p>-</p> <p>I have installed MvcSiteMapProvider.MVC4 through Nuget in my MVC4 project.</p> <p>My Mvc.sitemap looks like this (it's as I got it through Nuget)</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0" xsi:schemaLocation="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0 MvcSiteMapSchema.xsd"&gt; &lt;mvcSiteMapNode title="Home" controller="Home" action="Index"&gt; &lt;mvcSiteMapNode title="About" controller="Home" action="About"/&gt; &lt;/mvcSiteMapNode&gt; &lt;/mvcSiteMap&gt; </code></pre> <p>I have corresponding controllers and actions in my project (although my Homecontroller has more actions which I havn't writted out in the schema)</p> <p>At the bottom of my RouteConfig.cs I added this like</p> <pre><code>MvcSiteMapProvider.Web.Mvc.XmlSiteMapController.RegisterRoutes(routes); </code></pre> <p>Everything compiles fine and I have made no other alterations to the code.</p> <p>But when I go to localhost:xxxx/sitemap.xml I find no file (The resource cannot be found.). I was under the impression that this would work out of the box. Am I missing something?</p> <p>Other things MvcSiteMapProvider does like @Html.MvcSiteMap().SiteMap() works just fine, but it simply does not generate the sitemap.xml.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload