Microsoft MVP성태의 닷넷 이야기
오류 유형: 978. Unable to find the requested .Net Framework Data Provider. [링크 복사], [링크+제목 복사],
조회: 304
글쓴 사람
정성태 (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

비밀번호

댓글 작성자
 




1  2  3  4  5  6  7  [8]  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13825정성태11/21/20249196Linux: 110. eBPF / bpf2go - BPF_RINGBUF_OUTPUT / BPF_MAP_TYPE_RINGBUF 사용법
13824정성태11/20/20246395Linux: 109. eBPF / bpf2go - BPF_PERF_OUTPUT / BPF_MAP_TYPE_PERF_EVENT_ARRAY 사용법
13823정성태11/20/20248481개발 환경 구성: 734. Ubuntu에 docker, kubernetes (k3s) 설치
13822정성태11/20/20248493개발 환경 구성: 733. Windbg - VirtualBox VM의 커널 디버거 연결 시 COM 포트가 없는 경우
13821정성태11/18/20247782Linux: 108. Linux와 Windows의 프로세스/스레드 ID 관리 방식
13820정성태11/18/20248695VS.NET IDE: 195. Visual C++ - C# 프로젝트처럼 CopyToOutputDirectory 항목을 추가하는 방법
13819정성태11/15/20246134Linux: 107. eBPF - libbpf CO-RE의 CONFIG_DEBUG_INFO_BTF 빌드 여부에 대한 의존성
13818정성태11/15/20248739Windows: 272. Windows 11 24H2 - sudo 추가 [1]
13817정성태11/14/20247222Linux: 106. eBPF / bpf2go - (BPF_MAP_TYPE_HASH) Map을 이용한 전역 변수 구현
13816정성태11/14/20248805닷넷: 2312. C#, C++ - Windows / Linux 환경의 Thread Name 설정파일 다운로드1
13815정성태11/13/20246632Linux: 105. eBPF - bpf2go에서 전역 변수 설정 방법
13814정성태11/13/20247518닷넷: 2311. C# - Windows / Linux 환경에서 Native Thread ID 가져오기파일 다운로드1
13813정성태11/12/20248644닷넷: 2310. .NET의 Rune 타입과 emoji 표현파일 다운로드1
13812정성태11/11/202412322오류 유형: 933. Active Directory - The forest functional level is not supported.
13811정성태11/11/20247197Linux: 104. Linux - COLUMNS 환경변수가 언제나 80으로 설정되는 환경
13810정성태11/10/20248853Linux: 103. eBPF (bpf2go) - Tracepoint를 이용한 트레이스 (BPF_PROG_TYPE_TRACEPOINT)
13809정성태11/10/20248034Windows: 271. 윈도우 서버 2025 마이그레이션
13808정성태11/9/20248750오류 유형: 932. Linux - 커널 업그레이드 후 "error: bad shim signature" 오류 발생
13807정성태11/9/20246657Linux: 102. Linux - 커널 이미지 파일 서명 (Ubuntu 환경)
13806정성태11/8/20247021Windows: 270. 어댑터 상세 정보(Network Connection Details) 창의 내용이 비어 있는 경우
13805정성태11/8/20246439오류 유형: 931. Active Directory의 adprep 또는 복제가 안 되는 경우
13804정성태11/7/20248912Linux: 101. eBPF 함수의 인자를 다루는 방법
13803정성태11/7/20248121닷넷: 2309. C# - .NET Core에서 바뀐 DateTime.Ticks의 정밀도
13802정성태11/6/20248569Windows: 269. GetSystemTimeAsFileTime과 GetSystemTimePreciseAsFileTime의 차이점파일 다운로드1
13801정성태11/5/20248444Linux: 100. eBPF의 2가지 방식 - libbcc와 libbpf(CO-RE)
13800정성태11/3/20249392닷넷: 2308. C# - ICU 라이브러리를 활용한 문자열의 대소문자 변환 [2]파일 다운로드1
1  2  3  4  5  6  7  [8]  9  10  11  12  13  14  15  ...