Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Static method in the public class
Message
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01639234
Message ID:
01639245
Views:
47
Ok, after lots of digging I just found another problem.

Here is the code that has been recently changed:
 private void MustChangePassword(AuthorizationContext filterContext)
        {
            var changePasswordPath = "~/changepassword";
            var ctx = filterContext.RequestContext.HttpContext;
            //If not already on the ChangePassword page, then redirect there
            //This check prevents an infinite page redirect loop
            if (ctx.Request.Url.AbsolutePath.ToLower() != changePasswordPath)
                filterContext.Result = new RedirectResult(changePasswordPath);
        }
The ~ in the first string was added few days ago to allow to work with virtual directories. Apparently that change now caused me to spent a few hours figuring out what is wrong and why I am getting 'Redirecting too many times' error...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform