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
When I debug code, I see error ocurred on this block:
url = url.Substring(0, url.Length -suffix.Length);
var originalRequest = new ClonedHttpRequest(context.Request, url);
var originalContext = new ClonedHttpContext(context, originalRequest);
result = _route.GetRouteData(originalContext);
if (result != null)
{
// Found the original non-decorated route
return result;
}
result = route.GetRouteData(originalContext) always return null; seems like originalcontext never get route values (and language route value).
My site is running ASP.NET MVC 4, with Entity Framework using IIS Express with Visual Studio 2012
This is error details:
Source code error:
Línea 30: public override string AppRelativeCurrentExecutionFilePath
Línea 31: {
Línea 32: get { return VirtualPathUtility.ToAppRelative(_url); }
Línea 33: }
Línea 34: public override string CurrentExecutionFilePath
@turquoiseowl I don't knew branch v2 exists, but I review it yesterday, after I see your response here. You change localizing mechanism, now httpmodule does work, right? I know this question is out-of-box, but what were the motivation for do that??
When I debug code, I see error ocurred on this block:
result = route.GetRouteData(originalContext) always return null; seems like originalcontext never get route values (and language route value).
My site is running ASP.NET MVC 4, with Entity Framework using IIS Express with Visual Studio 2012
This is error details:
Source code error:
Línea 30: public override string AppRelativeCurrentExecutionFilePath
Línea 31: {
Línea 32: get { return VirtualPathUtility.ToAppRelative(_url); }
Línea 33: }
Línea 34: public override string CurrentExecutionFilePath
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: virtualPath]
System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +9800033
System.Web.VirtualPathUtility.ToAppRelative(String virtualPath) +13
i18n.ClonedHttpRequest.get_AppRelativeCurrentExecutionFilePath() in c:\Users\Kellerman\Documents\GitHub\i18n\src\i18n\ClonedHttpRequest.cs:32
System.Web.Routing.Route.GetRouteData(HttpContextBase httpContext) +49
i18n.LanguageRouteDecorator.GetRouteData(HttpContextBase context) in c:\Users\Kellerman\Documents\GitHub\i18n\src\i18n.MVC3\LanguageRouteDecorator.cs:42
System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +233
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +60
System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +82
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
The text was updated successfully, but these errors were encountered: