당신은 2 가지 방법으로이 문제를 해결 할 수있는 웹 사이트에 대한 링크입니다이
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Site", action = "Index", id = UrlParameter.Optional },
constraints: new { subdomain = new SubdomainRouteConstraint("www") },
namespaces: new string[] { "DeltaNorgeWebsite.Controllers" }
);
routes.MapRoute(
name: "Files",
url: "{id}",
defaults: new { controller = "File", action = "Index" },
constraints: new
{
subdomain = new SubdomainRouteConstraint("files")
}
);
#if DEBUG
// redirect localhost
routes.MapRoute(
name: "LocalhostRedirect",
url: "",
defaults: new { controller = "Redirect", action = "Index", path = "http://www.delta-norge.com" },
constraints: new
{
subdomain = new SubdomainRouteConstraint("localhost")
}
);
#endif
}
처럼 보인다 IIS 관리자의 웹 사이트에 대한 "디렉토리 목록"
2) 웹 사이트의 기본 문서를 설정하십시오.
어떤 예를 따르시겠습니까? – mohsinali1317
이 답변보기 stackoverflow : http://stackoverflow.com/questions/18981118/http-error-403-14-forbidden-the-web-server-is-configured-to-not-list-the-con – Mivaweb