asp.net mvc ignoreRoute with webservice

Posted by boz on Stack Overflow See other posts from Stack Overflow or by boz
Published on 2011-01-12T23:48:55Z Indexed on 2011/01/12 23:54 UTC
Read the original article Hit count: 184

Filed under:
|

Howdy,

Im adding the filevistacontrol to my asp.net MVC web application.

I have a media.aspx page that is ignored in the routing with

routes.IgnoreRoute("media.aspx");

This works successfully and serves a standard webforms page.

Upon adding the filevistacontrol, I can't seem to ignore any calls the control makes to it's webservice.

Eg the following ignoreRoute still seems to get picked up by the MvcHandler.

routes.IgnoreRoute("FileVistaControl/filevista.asmx/GetLanguageFile/");

The exception thrown is:

'The RouteData must contain an item named 'controller' with a non-empty string value'

Thanks in advance.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about routing