Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/sitemap.xml endpoint not functioning in MVC 5 #289

Closed
NightOwl888 opened this issue Feb 27, 2014 · 0 comments
Closed

/sitemap.xml endpoint not functioning in MVC 5 #289

NightOwl888 opened this issue Feb 27, 2014 · 0 comments

Comments

@NightOwl888
Copy link
Collaborator

This issue is being caused by a bug in the MVC 5 NuGet package, which doesn't always deploy the following elements into the root web.config file.

  <system.webServer>
    <modules>
      <remove name="UrlRoutingModule-4.0" />
      <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" />
    </modules>
  </system.webServer>

In the meantime until this is fixed, you can work around by copying the configuration above into your root web.config file manually.

NightOwl888 added a commit to NightOwl888/MvcSiteMapProvider that referenced this issue Feb 27, 2014
…missing appSettings, system.web, system.web.webPages.razor, and system.webServer elements were not being added to the configuration element in the XML. Also fixed logic in install.ps1 and uninstall.ps1 so it will install or uninstall the MVC >= 4 sections without having to update the code for future versions of MVC.
NightOwl888 added a commit to NightOwl888/MvcSiteMapProvider that referenced this issue Mar 1, 2014
…vider.Web 4.5.2 (with the bug fix for maartenba#289) is installed in new projects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant