hi
since i'm new in web developing, this the first time i'm creating web application using login ...
in my master page i'm checking if user is authenticated:
if (HttpContext.Current.User.Identity.IsAuthenticated) { NavigationMenu.Visible = true; } else { NavigationMenu.Visible = false; FormsAuthentication.RedirectToLoginPage(); }
login page is set in web.config:
<authentication mode="Forms"><forms loginUrl="~/Login.aspx" timeout="2880" /></authentication>
in Login.aspx.cs i set:
FormsAuthentication.SetAuthCookie(user, false);
so when i start application default page should be redirected to login page but the following error is thrown:
The length of the query string for this request exceeds the configured maxQueryStringLength value. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The length of the query string for this request exceeds the configured maxQueryStringLength value. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): The length of the query string for this request exceeds the configured maxQueryStringLength value.] System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +9672197 System.Web.ValidateRequestExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +35 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
this is the query string (if helpful):
so, i must be doing something wrong ...
please any suggestion how to solve this problem
thanks