본문 바로가기

DevelopNote/오류 모음

[C#] microsoft.ace.oledb.12.0' provider is not registered on the local machine

 

 엑셀 데이터를 읽어서 데이터를 밀어 넣어야하는 작업이 있었는데, 갑작스럽게 해당 오류를 만나게 됬다.

microsoft.ace.oledb.12.0' provider is not registered on the local machine

 


 

[원인]

  • visual studio는 32bit, 컴퓨터에 설치된 office 프로그램은 64bit visual studio가 인식을 하지 못함

[해결 방법]

중요

  • office 32bit 프로그램은 꼭 2010 버전으로 깔아야 이미 설치 된 64bit의 office 프로그램과 같이 설치 가능합니다.
  • 설치 프로그램의 버전은 로컬 디스크의 program files (x86) > Microsoft office 버전을 확인해 주세요.

[비고]

  • 설치 도중 You cannot install the 32-bit version~ 의 오류 발생
    • 컴퓨터에 64bit의 office 프로그램이 이미 깔렸기 때문에 발생한 문제
    • 설치 프로그램을 cmd에서 /passive 입력해 설치 진행
300x250