이 문제는 Windows 2008 Server가있는 서버에서만 로컬로 응용 프로그램을 실행하고 아무런 문제가 없습니다. "bin deploy"및 "Deployable Dependencies 추가 ..."옵션을 사용했지만 여전히 운이 없습니다. 몇 가지 추가 컨텍스트 ...MVC3 + SQL CE를 사용할 때 SQL CE 데이터베이스에 대한 스캐 폴딩을 사용하여 모든 페이지에서 404를 얻습니다.
IIS의 보안 설정은 Windows 인증 용으로 설정되어 있으며 web.config에는 익명 사용자가 일부 제외되어 있습니다 (이 시나리오에서 차이가 있는지 확실하지 않음).
<authentication mode="Windows" />
표준 템플릿 생성 코드가 Global.asax.cs 파일에 있습니다.
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("elmah.axd");
routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
}
내가 추가 한 것은 elmah와 favicon뿐입니다. 나는이 시점에서 앞으로 무엇을보아야할지 모르겠다. 그래서 어떤 도움도 인정 될 것이다.
또한, SQL CE 내 연결 문자열은 다음과 같습니다
<add name="BillingLogDbEntities" connectionString="metadata=res://*/Models.BillingLog.csdl|res://*/Models.BillingLog.ssdl|res://*/Models.BillingLog.msl;provider=System.Data.SqlServerCe.4.0;provider connection string="Data Source=|DataDirectory|\BillingLogDb.sdf"" providerName="System.Data.EntityClient" />
<add name="BillingLocalDbEntities" connectionString="metadata=res://*/Models.BillingLocal.csdl|res://*/Models.BillingLocal.ssdl|res://*/Models.BillingLocal.msl;provider=System.Data.SqlServerCe.4.0;provider connection string="Data Source=|DataDirectory|\BillingLocalDb.sdf"" providerName="System.Data.EntityClient" />
<add name="OverlayServicesDbEntities" connectionString="metadata=res://*/Models.OverlayServices.csdl|res://*/Models.OverlayServices.ssdl|res://*/Models.OverlayServices.msl;provider=System.Data.SqlServerCe.4.0;provider connection string="Data Source=|DataDirectory|\OverlayServicesDb.sdf"" providerName="System.Data.EntityClient" />
IIS 응용 프로그램 파이프 라인이 "[Integrated] (http://learn.iis.net/page.aspx/244/how-to-take-advantage-of-the- iis-70 이상 통합 파이프 라인 /) " –
연결 문자열을 표시 할 수 있습니까? – ErikEJ
rockinthesixstring - 확인해 보겠습니다. – Adron