This question is locked. New answers and comments are not allowed.
Hi,
I see that Q3 2012 uses InternalHttpContextBase class for routing. Now after upgrade to the latest Telerik MVC extensions version my site does not work because of it. I use my custom route. Please find it below:
As you can see I use httpContext object here and it throws an exception (not implemented exception) when I try to access "httpContext.Request.ApplicationPath" because your new InternalHttpContextBase is passed here instead of the default HttpContext. Excuse me but who made such a stupid architecture decision? There's even no way to override it this behavior.
Please explain what this class is used for and what will happen if I remove it?
I see that Q3 2012 uses InternalHttpContextBase class for routing. Now after upgrade to the latest Telerik MVC extensions version my site does not work because of it. I use my custom route. Please find it below:
public class LocalizedRoute : Route{ public override RouteData GetRouteData(HttpContextBase httpContext) { string applicationPath = httpContext.Request.ApplicationPath; //some logic here RouteData data = base.GetRouteData(httpContext); return data; }}As you can see I use httpContext object here and it throws an exception (not implemented exception) when I try to access "httpContext.Request.ApplicationPath" because your new InternalHttpContextBase is passed here instead of the default HttpContext. Excuse me but who made such a stupid architecture decision? There's even no way to override it this behavior.
Please explain what this class is used for and what will happen if I remove it?