This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.


Postby aspmaker_fan » Mon Oct 09, 2017 8:52 pm

I have a virtaul folder pointing to a shared folder. in MVC how do we set this up using the ignoreroute method?
For example I have a virtual folder called 'PDFs'. I can't see any RouteCollection class in generated controllers.

Kind regards

Posts: 12
Joined: Sat Apr 05, 2014 9:46 pm

Re: IgnoreRoutes

Postby Webmaster » Tue Oct 10, 2017 9:35 am

Why is that required? Read https://github.com/aspnet/Routing/issues/47, Microsoft said:

"One thing to note about ASP.NET Core MVC (the new MVC) is that if the incoming URL matches a route that is intended for MVC, but MVC can't find a matching controller/action, MVC ignores it, and the request will continue to the next middleware."
Posts: 10733
Joined: Fri Aug 06, 2004 5:59 pm

Return to General Discussion (ASP.NET Maker)