```
[RoutePrefix("/Home")]
public class HomeController : Controller
{
[HttpGet("Index")]
public ActionResult Index()
{
return View();
}
}
```
```
[RoutePrefix("Home/")]
public class HomeController : Controller
{
[HttpGet("Index")]
public ActionResult Index()
{
return View();
}
}
```
For the above route template definitions, currently the errors are like folowing:
1. The route URL separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value.
Parameter name: routeUrl
2. The route URL separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value.
Parameter name: routeUrl
__Impact__:
Low. User experience is effected. Since there is a possibility that the user's application could be having many controllers, it could get difficult to find the controller/action where this issue is occurring.
__Proposal__:
Better error message showing the controller/action information too, so that users can easily figure out where the problem is.
[RoutePrefix("/Home")]
public class HomeController : Controller
{
[HttpGet("Index")]
public ActionResult Index()
{
return View();
}
}
```
```
[RoutePrefix("Home/")]
public class HomeController : Controller
{
[HttpGet("Index")]
public ActionResult Index()
{
return View();
}
}
```
For the above route template definitions, currently the errors are like folowing:
1. The route URL separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value.
Parameter name: routeUrl
2. The route URL separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value.
Parameter name: routeUrl
__Impact__:
Low. User experience is effected. Since there is a possibility that the user's application could be having many controllers, it could get difficult to find the controller/action where this issue is occurring.
__Proposal__:
Better error message showing the controller/action information too, so that users can easily figure out where the problem is.