2011-10-14 2 views
0

이 문제는 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=&quot;Data Source=|DataDirectory|\BillingLogDb.sdf&quot;" 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=&quot;Data Source=|DataDirectory|\BillingLocalDb.sdf&quot;" 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=&quot;Data Source=|DataDirectory|\OverlayServicesDb.sdf&quot;" providerName="System.Data.EntityClient" /> 
+0

IIS 응용 프로그램 파이프 라인이 "[Integrated] (http://learn.iis.net/page.aspx/244/how-to-take-advantage-of-the- iis-70 이상 통합 파이프 라인 /) " –

+0

연결 문자열을 표시 할 수 있습니까? – ErikEJ

+0

rockinthesixstring - 확인해 보겠습니다. – Adron

답변

1

이 솔루션은 두 가지의 조합이었다 : 나는 디렉토리에 적절한 권한을 설정하는 데 필요한

  1. 그 SQL Server CE 파일은 내부에있었습니다.
  2. SQL CE 데이터베이스를 다시 가리 키도록 Entity Framework을 다시 생성해야했습니다. 어떤 이유로 응용 프로그램은 실제로 "X 데이터베이스에 연결할 수 없습니다"라는 오류를 삼키는 중이었습니다. 생성 된 코드의 일부가 동기화되지 않았습니다.
관련 문제