Skip to content
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
@develax

Description

@develax

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 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions