Microsoft MVP성태의 닷넷 이야기
오류 유형: 978. Unable to find the requested .Net Framework Data Provider. [링크 복사], [링크+제목 복사],
조회: 501
글쓴 사람
정성태 (seongtaejeong at gmail.com)
홈페이지
첨부 파일
 

Unable to find the requested .Net Framework Data Provider.

다음과 같은 오류가 발생한다면?

Unable to find the requested .Net Framework Data Provider.  It may not be installed. 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

 Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.

Source Error: 

 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 

[ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.]
   System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +109
   System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig(String name) +468
   System.Data.Entity.Internal.LazyInternalConnection.Initialize() +70
   System.Data.Entity.Internal.LazyInternalConnection.get_ConnectionHasModel() +16
   System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +226
   System.Data.Entity.Internal.InternalContext.Initialize() +21
   System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +20
   System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +92
   System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21
   System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +44
   System.Linq.Queryable.OrderByDescending(IQueryable`1 source, Expression`1 keySelector) +81
   MvcMusicStore.Controllers.HomeController.GetTopSellingAlbums(Int32 count)
   MvcMusicStore.Controllers.HomeController.Index()
   lambda_method(Closure , ControllerBase , Object[] ) +79
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +249
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
   ...[생략]...

와중에 web.config의 연결 문자열이 sdf 파일을 가리키고 있다면?

...[생략]...
  <connectionStrings>
    <add name="MusicStoreEntities"
     connectionString="Data Source=|DataDirectory|MvcMusicStore.sdf"
     providerName="System.Data.SqlServerCe.4.0"/>
  </connectionStrings>  
...[생략]...

아마도 SQL Server Compact Edition 4.0이 설치돼 있지 않아서 발생하는 오류일 것이므로,

Microsoft® SQL Server® Compact 4.0 SP1
; https://www.microsoft.com/en-us/download/details.aspx?id=30709

SSCERuntime_x64-ENU.exe를 실행해 해결할 수 있습니다.




혹시나 그래도 이런 오류가 발생한다면?

[SqlCeException (0x80004005): Access to the database file is not allowed. [ 1914,File name = C:\MvcStore\App_Data\MvcMusicStore.sdf,SeCreateFile ]]
   System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent) +2288
   System.Data.SqlServerCe.SqlCeConnection.Open() +510
   System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +70

[EntityException: The underlying provider failed on Open.]
   System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +261
   System.Data.EntityClient.EntityConnection.Open() +135
   System.Data.Objects.ObjectContext.EnsureConnection() +84
   System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +71
   System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +49
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +220
   System.Linq.Queryable.FirstOrDefault(IQueryable`1 source) +314
   System.Data.Entity.Internal.InternalContext.QueryForModelHash() +242
   System.Data.Entity.Internal.InternalContext.CompatibleWithModel(Boolean throwIfNoMetadata) +106
   System.Data.Entity.DropCreateDatabaseIfModelChanges`1.InitializeDatabase(TContext context) +305
   System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) +64

[DataException: An exception occurred while initializing the database. See the InnerException for details.]
   System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) +152
   System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization() +182
   System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input) +193
   System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action) +217
   System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +20
   System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +92
   System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21
   System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +44
   System.Linq.Queryable.OrderByDescending(IQueryable`1 source, Expression`1 keySelector) +81
   MvcMusicStore.Controllers.HomeController.GetTopSellingAlbums(Int32 count)
   MvcMusicStore.Controllers.HomeController.Index()
   lambda_method(Closure , ControllerBase , Object[] ) +79
   ...[생략]...

오류 메시지 그대로 권한이 없는 경우인데요, 탐색기에서 MvcMusicStore.sdf 파일의 권한 체크를 해보시고 IIS의 AppPool 권한과 비교하면 답이 나올 것입니다.




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 8/13/2025]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 166  167  [168]  169  170  171  172  173  174  175  176  177  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
921정성태9/2/201033066DDK: 2. Device Driver 응용 프로그램의 빌드 스크립트 [2]파일 다운로드1
920정성태9/1/201038121오류 유형: 105. WMI - The RPC server is unavailable [2]
919정성태8/30/201044216DDK: 1. Visual Studio 2010 - Device Driver 제작- Hello World 예제 [3]파일 다운로드1
918정성태8/28/201029632개발 환경 구성: 87. Hyper-V의 네트워크 유형 (3)
917정성태8/26/201024834개발 환경 구성: 86. "Routing and Remote Access"의 "Routing" 기능 활성화 방법
916정성태8/25/201024072개발 환경 구성: 85. 가상 네트워크에 LAN 어댑터 보이거나 감추는 방법
915정성태8/24/201042163개발 환경 구성: 84. Hyper-V의 네트워크 유형 (2)
913정성태8/22/201031297오류 유형: 104. Hyper-V 관리자 - VM 생성 오류 (VHD 생성 오류)
912정성태8/20/201032981.NET Framework: 183. 구조체 포인터 인자에 대한 P/Invoke 정의파일 다운로드1
911정성태8/19/201030599오류 유형: 103. System.Reflection.TargetException파일 다운로드1
910정성태8/19/201041456개발 환경 구성: 83. Hyper-V의 네트워크 유형 (1)
909정성태8/18/201036374오류 유형: 102. System.MissingMethodException
908정성태8/17/201027216개발 환경 구성: 82. Windows Virtual PC의 네트워크 유형 (3)
907정성태8/14/201024774개발 환경 구성: 81. Windows Virtual PC의 네트워크 유형 (2)
906정성태8/13/201032544개발 환경 구성: 80. Windows Virtual PC의 네트워크 유형 (1)
905정성태8/8/201036402Team Foundation Server: 39. 배치 파일로 팀 빌드 구성 [2]파일 다운로드1
904정성태8/8/201038775오류 유형: 101. SignTool Error: No certificates were found that met all the given criteria. [2]
903정성태8/6/201035702Team Foundation Server: 38. TFS 소스 코드 관리 기능 (4) - Branch
902정성태8/5/201027961Team Foundation Server: 37. TFS 2010의 소스 서버 수작업 구성
901정성태8/4/201027142Team Foundation Server: 36. TFS 소스 코드 관리 기능 (3) - Label
900정성태8/3/201030081Team Foundation Server: 35. TFS 소스 코드 관리 기능 (2) - Shelveset
899정성태8/2/201031728Team Foundation Server: 34. TFS 소스 코드 관리 기능 (1) - Changeset
898정성태7/31/201031801.NET Framework: 182. WCF의 InactivityTimeout [1]파일 다운로드1
897정성태7/26/201132940.NET Framework: 181. AssemblyVersion, AssemblyFileVersion, AssemblyInformationalVersion [4]
896정성태7/25/201040129.NET Framework: 180. C# Singleton 인스턴스 생성 [2]
895정성태7/25/201023456VS.NET IDE: 68. Visual Studio 2010 - .NET 1.1 원격 디버깅
... 166  167  [168]  169  170  171  172  173  174  175  176  177  178  179  180  ...