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

비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  [37]  38  39  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
13094정성태7/6/202216326오류 유형: 816. Golang - "short write" 오류 원인
13093정성태7/5/202217141.NET Framework: 2029. C# - HttpWebRequest로 localhost 접속 시 2초 이상 지연
13092정성태7/3/202219719.NET Framework: 2028. C# - HttpWebRequest의 POST 동작 방식파일 다운로드1
13091정성태7/3/202218925.NET Framework: 2027. C# - IPv4, IPv6를 모두 지원하는 서버 소켓 생성 방법 [1]
13090정성태6/29/202218421오류 유형: 815. PyPI에 업로드한 패키지가 반영이 안 되는 경우
13089정성태6/28/202218696개발 환경 구성: 646. HOSTS 파일 변경 시 Edge 브라우저에 반영하는 방법
13088정성태6/27/202216998개발 환경 구성: 645. "Developer Command Prompt for VS 2022" 명령행 환경의 폰트를 바꾸는 방법
13087정성태6/23/202219662스크립트: 41. 파이썬 - FastAPI / uvicorn 호스팅 환경에서 asyncio 사용하는 방법 [1]
13086정성태6/22/202219890.NET Framework: 2026. C# 11 - 문자열 보간 개선 2가지파일 다운로드1
13085정성태6/22/202218704.NET Framework: 2025. C# 11 - 원시 문자열 리터럴(raw string literals)파일 다운로드1
13084정성태6/21/202219277개발 환경 구성: 644. Windows - 파이썬 2.7을 msi 설치 없이 구성하는 방법
13083정성태6/20/202219192.NET Framework: 2024. .NET 7에 도입된 GC의 메모리 해제에 대한 segment와 region의 차이점 [2]
13082정성태6/19/202218226.NET Framework: 2023. C# - Process의 I/O 사용량을 보여주는 GetProcessIoCounters Win32 API파일 다운로드1
13081정성태6/17/202216383.NET Framework: 2022. C# - .NET 7 Preview 5 신규 기능 - System.IO.Stream ReadExactly / ReadAtLeast파일 다운로드1
13080정성태6/17/202218462개발 환경 구성: 643. Visual Studio 2022 17.2 버전에서 C# 11 또는 .NET 7.0 preview 적용
13079정성태6/17/202215371오류 유형: 814. 파이썬 - Error: The file/path provided (...) does not appear to exist
13078정성태6/16/202219642.NET Framework: 2021. WPF - UI Thread와 Render Thread파일 다운로드1
13077정성태6/15/202220226스크립트: 40. 파이썬 - PostgreSQL 환경 구성
13075정성태6/15/202217164Linux: 50. Linux - apt와 apt-get의 차이 [2]
13074정성태6/13/202217638.NET Framework: 2020. C# - NTFS 파일에 사용자 정의 속성값 추가하는 방법파일 다운로드1
13073정성태6/12/202218774Windows: 207. Windows Server 2022에 도입된 WSL 2
13072정성태6/10/202218454Linux: 49. Linux - ls 명령어로 출력되는 디렉터리 색상 변경 방법
13071정성태6/9/202219385스크립트: 39. Python에서 cx_Oracle 환경 구성
13070정성태6/8/202220028오류 유형: 813. Windows 11에서 입력 포커스가 바뀌는 문제 [1]
13069정성태5/26/202222047.NET Framework: 2019. C# - .NET에서 제공하는 3가지 Timer 비교 [2]
13068정성태5/24/202220840.NET Framework: 2018. C# - 일정 크기를 할당하는 동안 GC를 (가능한) 멈추는 방법 [1]파일 다운로드1
... 31  32  33  34  35  36  [37]  38  39  40  41  42  43  44  45  ...