This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
RedirectToAction causes InvalidOperationException #7701
Closed
Description
I'm using ASP.NET MVC Core 2.0.7 and trying to make a simple redirect via
return RedirectToAction(nameof(EditPost), new { post.Id });
which ends with the exception:
InvalidOperationException: Invalid non-ASCII or control character in header: 0x0441
I found some similar issues here, but they are related to Redirect
(not RedirectToAction
) and they all are closed.
P.S.
The same exception is thrown when using RedirectToRoute
:
return RedirectToRoute(RouteNames.PostsAdminRoute, new { action = nameof(EditPost), post.Id });