You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExtDirectHandler is implemented as a single System.Web.HttpHandler, so it should work with ASP.NET MVC without problems, you just have to inform MVC routing mechanism to ignore Ext Direct requests.
For example, if ExtDirectHandler has been configured for handling requests from "/rpc" address, add the following routing configuration in your Global.asax:
routes.IgnoreRoute("rpc/{*pathInfo}");
Other approach
Create class:
public class DirectRouteHandler : IRouteHandler
{
public IHttpHandler GetHttpHandler(RequestContext requestContext)
{
return new ExtDirectHandler.DirectHttpHandler();
}
}
Add following to the RegisterRoutes function in Global.asax.cs:
routes.Add(new Route("rpc/{*pathInfo}", new DirectRouteHandler()));
No <httpHandlers> and routes.IgnoreRoute("rpc/{*pathInfo}") are required anymore.