Your URL is incorrect. You would need a result which has a valid Url encoded query string:
"/Home/ErrorPage?error=the+error+is+from+here";
However, instead of direct construction, you should use Html helper methods to build the url, e.g.:
Url.Action("ErrorPage", "Home", new {error = "the error is from here"});
You can also use TempData to pass once-off information:
Note that as per @Vsevolod's comment, that you shouldn't use Response.Redirect
directly. Use an MVC RedirectResult or RedirectToAction
from your controller, e.g.:
public ActionResult MethodReportingError()
{
TempData["Error"] = "Bad things happened";
return new RedirectResult(Url.Action("ErrorPage", "Home"));
}
public ActionResult ErrorPage()
{
return View(TempData["Error"]);
}