Reputation: 73938
I use asp.net c# using Web Forms.
I use Routing for my website.
I need my Route ignore ELMAH (myFolder/elmah.axd)
I was thinking to use
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
But IgnoreRoute
is from System.Web.Mvc namescape so I cannot use it in my Web Form
application.
Web Form
?Thanks
Upvotes: 3
Views: 1408
Reputation: 5213
You need to use this for web forms:
routes.Ignore("{resource}.axd/{*pathInfo}");
Good Luck!
Upvotes: 3