Add the path _vti_bin/Lists.asmx to an ASP.NET MVC 2 web application

Posted by Philipp Schmid on Stack Overflow See other posts from Stack Overflow or by Philipp Schmid
Published on 2010-04-21T23:49:32Z Indexed on 2010/04/21 23:53 UTC
Read the original article Hit count: 416

Filed under:
|
|

I am trying to add the path /_vti_bin/Lists.asmx to my ASP.NET MVC 2 web application.

I am registering the route as follows:

routes.IgnoreRoute("{resource}.asmx/{*pathInfo}");
routes.Add(new Route("_vti_bin/Lists.asmx", new ListsHandler()));

where ListHandler is defined as:

public sealed class ListsHandler : IRouteHandler
{
    #region IRouteHandler Members

    public IHttpHandler GetHttpHandler(RequestContext requestContext)
    {
        throw new NotImplementedException();
    }

    #endregion
}

But when I start the MVC application and try to navigate to http://localhost:8888/_vti_bin/Lists.asmx, I get an HTTP 404 error, rather than an exception raised.

Is this even possible in MVC? Do I need to add an Lists.asmx ASPX web service file to my project in a particular place (I cannot create the _vti_bin folder in the Visual Studio project)?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about asmx