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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -