Heres my code:
XElement navegacion;
public Navegacion()
{
this.navegacion = XElement.Load(HttpContext.Current.Server.MapPath("App_Data/navegacion.xml"));
}
It works just fine when I go to:
an when I go to
But it cant open the file when I go to
or
http://localhost/Users/Index/1
or any other id for that matter.
Navegacion class is a Model.
Is there a way to fix this?