Could not found Request class to call a method in VS2010

Posted by Shasseb under ASP.NET on 6/4/2013 | Points: 10 | Views : 632 | Status : [Member] | Replies : 0

I am working on MVC4 application in VS 2010. The problem is while doing file uploading i can't find Request class to call it its method in contoller.. so what i can i do to use it in my project.. please help me as my whole work is struck because of it.. Thanks

here is my code.. the bold text shows that this component is not found..

public ActionResult Save()
for (int i = 0; i< Request .Files.Count; i++)
HttpPostedFileBase file = Request .Files[i];
file.SaveAs(Server.MapPath(@"~\Files\" + file.FileName));

return View("Index");


(No response found.)

Login to post response