Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); is mandatory, why isn't it setup once through IIS?

I notice routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); is always setup whenever we create MVC applications.

If it is a mandatory thing, why don't we setup it once through IIS settings rather than doing it again and again ?

like image 311
xport Avatar asked Jan 01 '26 08:01

xport


1 Answers

Nobody said it was 'mandatory'. It makes excellent sense to be there by default, though. And if you don't want it, you can remove it.

like image 129
Andrew Barber Avatar answered Jan 06 '26 09:01

Andrew Barber



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!