.Net>Learn .Net MVC>ASP.Net MVC 5 Error: The controller for path '/' was not found or does...
✕
Search in
ASP.Net MVC 5 Error: The controller for path '/' was not found or does not implement IController
M
Mohammad Shafi
18/10/2016000
When a page, that is located inside an area, wants to access a controller that is located outside of this area (such as a shared layout page or a certain page inside a different area), the area of this controller needs to be added. Since the common controller is not in a specific area but part of the main project, you have to leave area empty:
@Html.Action("MenuItems","Common",new{area=""})
The above needs to be added to all of the actions and actionlinks since the layout page is shared throughout the various areas.
Replace above line with below to apply ("DD/mm/yyyy") formatting to date field in WebGrid AllTicket.Column(columnName: "DueDate", header: "Due Date") grid.Column("Date",format:@<text> @item.Date.ToString("MM/dd/yyyy")</text>)
public ActionResult Export() { StringBuilder sb = new StringBuilder(); //static file name, can be changes as per requirement string sFileName = "filename.xls"; //Bind...
A service-level agreement (SLA) is a contract between a service provider and its internal or external customers that documents what services the provider will furnish. SLAs originated with network service...