0
Hey, guys, a problem I can’t seem to solve.
My project is ASP NET MVC5 with C#.
I went to create another page in my project and simply when I run it is not recognized. I did the same way I always did and it’s not working.
The error " HTTP 404 appears. The Resource you are Looking for (or one of its dependencies) could have been Removed".
This is the Controller:
public class GruposDeUsuariosControllers : Controller
{
public ActionResult RedirecionarPaginaDePesquisa()
{
GruposDeUsuariosViewModel modelo = new GruposDeUsuariosViewModel();
try
{
return View("PaginaPesquisarGruposDeUsuarios", modelo);
}
catch (Exception e)
{
TempData["MENSAGEM_ERRO"] = e.Message;
return View("PaginaPesquisarGruposDeUsuarios", modelo);
}
}
}
The page is named 'Paginapesquisargruposdeusuarios.cshtml', it is within the path "Views/Groupsthis" and has practically nothing in the content, only:
<h1>Página</h1>
I’m using Visual Studio 2012 (yes, very old, but the client only has this one) and I don’t know what else to do REAL.
Looks like something pretty silly or bug msm.
Anyone who can help me I’d be most grateful, because this is urgent :(
Thanks in advance!
what url you are using to access the page?
– Ricardo Pontual
If you are not returning the same view as actionResult, it would be interesting to use Redirecttoaction ("Actionqueretornaview", "Nameoontroller")
– Danielle Arruda torres
So the problem is that it doesn’t even get into the method
– Rafaela Marraschi