Object Moved Here - Redirecttoaction
Again, after tiresome attempts to solve this annoying issue, I am back here. I am experiencing an 'Object moved here' on my view in my MVC5 application after some return RedirectTo
Solution 1:
I think the error is here
return RedirectToAction("Index", "Roles", model);
you are passing route values but your index action doesn't accept any, it generate the value itself, you can simple do this instead
return RedirectToAction("Index", "Roles");
,
and your index will query the new model, if you want to pass the model, you need to edit your index action accordingly, to accept role model.
Solution 2:
Solution can be found on this SO post of mine. Fixed everything :-)
GET http://localhost/Roles/Create 500 (Internal Server Error)
Post a Comment for "Object Moved Here - Redirecttoaction"