Note that there are some explanatory texts on larger screens.

plurals
  1. POasp.net mvc 3 areas and url routing configuration
    primarykey
    data
    text
    <p>I have problem with create ulr routing for asp.net mvc3 application.</p> <p>My project has this structure : </p> <ul> <li>Areas <ul> <li>EmployeeReport <ul> <li>Controllers <ul> <li>Report </li> </ul></li> <li>Views <ul> <li>Report <ul> <li>List </li> <li>....</li> </ul></li> </ul></li> </ul></li> </ul></li> <li>Controllers <ul> <li>Login </li> </ul></li> <li>Viwes <ul> <li>Login <ul> <li>... </li> </ul></li> </ul></li> </ul> <p>EmployeeReportAreaRegistration.cs : <code></p> <pre><code>public class EmployeeReportAreaRegistration : AreaRegistration { public override string AreaName { get { return "EmployeeReport"; } } public override void RegisterArea(AreaRegistrationContext context) { var routes = context.Routes; routes.MapRoute(null, "vykazy/vykazy-zamestnance", new { Area = "EmployeeReport", controller = "Report", action = "List" }); } } </code></pre> <p></code></p> <p>Global.asax : </p> <p><code></p> <pre><code> routes.MapRoute(null, "prihlasit", new { controller = "Login", action = "Login" }); routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Default", action = "Welcome", id = UrlParameter.Optional }); </code></pre> <p></code></p> <pre><code>When i try load "http://localhost/app_name/vykazy/vykazy-zamestnance i get this exception : The view 'List' or its master was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/Report/List.aspx ~/Views/Report/List.ascx ~/Views/Shared/List.aspx ~/Views/Shared/List.ascx ~/Views/Report/List.cshtml ~/Views/Report/List.vbhtml ~/Views/Shared/List.cshtml ~/Views/Shared/List.vbhtml </code></pre> <p>Well, where I do mistake ?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload