ASP.NET MVC - Routing - an action with file extension
问题 is there a way to achieve calling URL http://mywebsite/myarea/mycontroller/myaction.xml This would basically "fake" requesting a file but the result would be an action operation that would serve a file created dynamically? I tried this: context.MapRoute( "Xml_filename", "Xml/{controller}/{action}.xml" ); but whenever there is a filextension in the URL the routing fails and behaves as I was requesting a file directly. I suspect this might be because of using extension less url handler. <add