I have a MVC application, I try to run the application but I can not get any page in Browser, I am guessing the path has some problem.
This is RouteConfig:
public class RouteConfig {
public static void RegisterRoutes(RouteCollection routes) {
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{resource}.ashx/{*pathInfo}");
routes.MapRoute(
name: "Default", // Route name
url: "{controller}/{action}/{id}", // URL with parameters
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
}
}
This is HomeController:
public ActionResult Index()
{
ViewBag.Message = "Welcome to DevExpress Extensions for ASP.NET MVC!";
return View();
}
This is the View's path:
Views -> Home -> Index.cshml
@Html.DevExpress().ReportDesigner(settings =>
{
settings.Name = "ReportDesigner";
}).Bind(new DevExpressDemo.Reports.Report1()).GetHtml()
This URL is in Project URL: http://localhost:53975/
When I run the project I go to this URL:
https://localhost:53975/Home/Index
But this is the response I am getting in Browser:
This site can’t provide a secure connectionlocalhost sent an invalid response.
When I go to http://localhost:53975/ it convert it automatically to https and shows : This site can’t provide a secure connection