c# - Could someone explain how this ignore route works? -



c# - Could someone explain how this ignore route works? -

so added asmx web service mvc4 when tried access got "the resource not found" error. after searching found answer here.

in short, had add together next ignoreroute routeconfig file.

routes.ignoreroute("{*x}", new { x = @".*\.asmx(/.*)?" });

i understand maproute function in mvc well, ignoreroute, not much. understand it's targeting .asmx postfix i'm not sure on how's , why's of quick fix.

how ignoreroute work, , why create mvc app magically understand how find , execute web service? btw, mapped route, currently, default, there another/better way of solving issue using maproute or fix?

ignore route indicates routing should ignore these requests , asp.net processing of these requests occur. http://haacked.com/archive/2008/07/14/make-routing-ignore-requests-for-a-file-extension.aspx/

c# asp.net-mvc-4 ignoreroute

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -