rahjoya
شنبه 05 تیر 1395, 13:20 عصر
سلام.
آیا راهی هست که با اجرای برنامه از همان ابتدا ایندکس درون area اجرا شود؟
الان با اجرای برنامه پیغام زیر داده میشود
Server Error in '/' Application.
The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
~/Views/Home/Index.cshtml
~/Views/Home/Index.vbhtml
~/Views/Shared/Index.cshtml
~/Views/Shared/Index.vbhtml
تیظیمات areaRegisteration:
context.MapRoute( "SomeArea_default", "SomeArea/{controller}/{action}/{id}",new { controller = "SomeController", action = "Index", id = UrlParameter.Optional } );
تنظیمات Route config:
routes.MapRoute(name: "Default",url: "{controller}/{action}/{id}",defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional}
آیا راهی هست که با اجرای برنامه از همان ابتدا ایندکس درون area اجرا شود؟
الان با اجرای برنامه پیغام زیر داده میشود
Server Error in '/' Application.
The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
~/Views/Home/Index.cshtml
~/Views/Home/Index.vbhtml
~/Views/Shared/Index.cshtml
~/Views/Shared/Index.vbhtml
تیظیمات areaRegisteration:
context.MapRoute( "SomeArea_default", "SomeArea/{controller}/{action}/{id}",new { controller = "SomeController", action = "Index", id = UrlParameter.Optional } );
تنظیمات Route config:
routes.MapRoute(name: "Default",url: "{controller}/{action}/{id}",defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional}