this is how my route looks like:
 public class RouteConfig
 {
 public static void RegisterRoutes(RouteCollection routes)
 {
 routes.IgnoreRoute("{resource}.axd/{\*pathInfo}");

```
        routes.MapRoute(
            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "DefaultPage", action = "DefaultPage", id = UrlParameter.Optional }
        );
    }
}

```

my controller name is "defaultPageController" and my view name is "defaultPage".

but when i lounch the page this is the url i get:

```
    http://localhost:47983/Views/DefaultPage/DefaultPage.cshtml

```

and then i need to delete the "/view/" and the ".cshtml" from the url and then it works fine.

why is this happening?

how can i change it?

tnx