I'm using MVC 5 with Identity 2.0 for security. When I start the application it displays login page (without layout probably because I'm returning partial view). When I use return View() instead of return PartialView() it gives me following error;
HTTP Error 404.15 - Not Found The request filtering module is configured to deny a request where the query string is too long.
I enabled both windows and Anonymous authentication of website but it is not working. My action for login is
[AllowAnonymous]
public ActionResult Login(string returnUrl)
{
ViewBag.ReturnUrl = returnUrl;
return PartialView();
}
your issue it's not the MVC code it's more an IIS configuration take a look at the following link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.