thought i was having an error with the folder structure but i think my deployed mvc app isn't picking up the web pages because of the extension.
When I type in the root directory it loads up the index page without the .cshtml.
When i try to use one of the links from that page the url loads without the .cshtml and says
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
if i append it to have .cshtml at the end i get
Server Error in '/' Application.
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.cshtml' may be incorrect. Please review the URL below and make sure that it is spelled correctly.
Requested URL: /Employee/_ViewEmpDetails.cshtml
Is there some setting i have missed? never deployed one of these before!
EDIT
have tried running
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i
but no joy.
EDIT2
my route config in case it has something to do with this:
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 = "Treeview", action = "Index", id = UrlParameter.Optional }
);
}
}