c# - Static URL with extension not getting routed to respective controller -



c# - Static URL with extension not getting routed to respective controller -

i have defined custom route sitemap this

routes.maproute( name: "sitemap", url: "sitemap.xml", defaults: new { controller = "seo", action = "sitemap" } );

in scenario when request url domain.com/sitemap.xml should routed seo controller , sitemap action required info dynamically , generate sitemap.xml file , served here every thing working fine , problem when request url sec time not getting routed controller , same old content rendered think iis serving static file can 1 help me in overcome issue

c# routing asp.net-mvc-5

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -