a bug

Feb 18, 2011 at 7:40 AM
Edited Feb 18, 2011 at 7:43 AM

System.Web.Routing.VirtualPathData vpd = System.Web.Routing.RouteTable.Routes.GetVirtualPath(helper.ViewContext, valuesDir);  

there is a bug:System.NullReferenceException

    System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
    System.Web.Routing.ParsedRoute.Bind(RouteValueDictionary currentValues, RouteValueDictionary values, RouteValueDictionary defaultValues, RouteValueDictionary constraints)
    System.Web.Routing.Route.GetVirtualPath(RequestContext requestContext, RouteValueDictionary values)

((System.NullReferenceException)$exception).StackTrace

Jul 5, 2011 at 1:00 PM

try  helper.ViewContext.RequestContext instead helper.ViewContext

May 31, 2013 at 3:08 AM
In the file SVN.Net\SVN.Net\Misc\HtmlHelperPlus.cs, Line 54, replace

System.Web.Routing.VirtualPathData vpd = System.Web.Routing.RouteTable.Routes.GetVirtualPath(helper.ViewContext, valuesDir);

With

System.Web.Routing.VirtualPathData vpd = System.Web.Routing.RouteTable.Routes.GetVirtualPath(helper.ViewContext.RequestContext, valuesDir);