Tuesday, April 12, 2011

RadBinaryImage MapPageRoute not working

Under ASP.NET 4.0, when using System.Web.Routing (URL Routing) with telerik controls I received broken images.

void RegisterRoutes(System.Web.Routing.RouteCollection routes)
{
//make sure this is first
routes.Add(new System.Web.Routing.Route("{resource}.axd/{*pathInfo}", new System.Web.Routing.StopRoutingHandler()));

//...other routes here
}


found the answer here: