RouteConfig.cs には、このようなカスタム コントローラー ルートがあります。
routes.MapRoute("User", "user/{name}", new { controller = "User", action = "Index",name =""});
また、Indexメソッドを使用したHomeコントローラーがあります
//
// GET: /User/
public ActionResult Index()
{
return Content("stinky");
}
また、ユーザーコントローラーのインデックスビュー
ただし、ルーティングする場合はlocalhost:11963/User/ *
エラーが発生しました
「/」アプリケーションでサーバー エラーが発生しました。