Microsoft MVP성태의 닷넷 이야기
오류 유형: 31. SQL Compact Edition 설치 후 오류 [링크 복사], [링크+제목 복사],
조회: 20503
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 


SQL Compact Edition 설치 후 오류


이번에는, SQL Server Compact Edition 을 설치한 경우에 발생할 수 있는 오류 현상에 대해서 설명해 보겠습니다. 일단, 경험으로 봐서는 단독 설치한 경우에는 발생하지 않고 SQL Server(Express)버전과 함께 설치되었을 때 발생하는 것 같습니다.

오류의 정확한 원인은 일단 다음에 살펴 보기로 하고, 임시로 문제를 해결할 수 있는 방법만을 설명드리겠습니다.

우선, 어떤 오류 현상들을 볼 수 있는지 나열해 보겠습니다.

1. SQL Server Management Studio Express 에서 DB 를 생성하고, 관련 DB 에 테이블을 생성하려 할 때 다음과 같은 오류가 발생합니다.

sql_ce_error_1.PNG

"
Exception has been thrown by the target of an invocation. (Microsoft.SqlServer.Express.SQLEditors)

Additional informations
 - An error occurred createing the configuration section handler for system.data:
   Column 'InvariantName' is constrained to be unique.
   Value 'Microsoft.SqlServerCe.Client' is already present.
   (C:\Windows\Microsoft.nET\Framework\v2.0.50727\Config\machine.config line 128)
   (System.Configuration)
    - Column 'InvariantName' is constrained to be unique.
      Value 'Microsoft.SqlServerCe.Client' is already present. (System.Data)
"

2. Visual Studio.NET 의 "Server Explorer"를 이용해서 새로운 DB 를 등록하려 할때 다음과 같은 오류창이 뜨게 됩니다.

sql_ce_error_2.PNG




이를 해결하기 위해서는 위의 1번 현상에서 보았던 경로의 "machine.config" 파일을 열어서 다음의 라인을 주석처리해야만 됩니다.

  <system.data>
    <DbProviderFactories>
      <add name="Odbc Data Provider" ... PublicKeyToken=b77a5c561934e089" />
      <add name="OleDb Data Provider" ... PublicKeyToken=b77a5c561934e089" />
      <add name="OracleClient Data Provider" ... PublicKeyToken=b77a5c561934e089" />
      <add name="SqlClient Data Provider" ... PublicKeyToken=b77a5c561934e089" />
      <!--add name="SQL Server CE Data Provider" 
      invariant="Microsoft.SqlServerCe.Client" 
      description=".NET Framework Data Provider for Microsoft SQL Server 2005 Mobile Edition" 
      type="Microsoft.SqlServerCe.Client.SqlCeClientFactory, Microsoft.SqlServerCe.Client, 
      Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /-->
      <add name="SQL Server Compact Edition Data Provider" ... PublicKeyToken=89845dcd8080cc91" />
      <add name="SQL Server Compact Edition Client Data Provider" ... PublicKeyToken=89845dcd8080cc91" />
    </DbProviderFactories>
  </system.data>

물론, 이렇게 하면, Compact Edition 동작 관련해서는 분명히 오류가 발생할 것입니다. 해보진 않았지만, 어쩌면 상황에 따라서 서로의 provider 를 토글식으로 enable/disable 시켜야 할지도 아직은 명확하게 정리가 안되었습니다.

어쨌든 일단, 오늘은 여기까지만. ^^




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







[최초 등록일: ]
[최종 수정일: 3/18/2007]

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

비밀번호

댓글 작성자
 




... 181  182  183  184  185  186  187  188  189  190  [191]  192  193  194  195  ...
NoWriterDateCnt.TitleFile(s)
205정성태4/13/200623095VS.NET IDE: 37. devenv.exe를 이용한 Command Line 컴파일 [1]
204정성태5/8/200618235웹: 2. Server Unavailable - Server Application Unavailable
203정성태4/13/200617071웹: 1. IIS 설정 옵션: Verify(Check) that file exists
202정성태4/13/200616751VS.NET IDE: 36. Automatically synchronize with an Internet time server
201정성태4/13/200619890기타: 12. XMLHTTP Failure and SUS Admin
200정성태4/13/200619147.NET Framework: 58. 웹 서비스 메서드 호출 오류 유형 - text/html; charset=xxx, but expected 'text/xml'
199정성태4/13/200620558스크립트: 6. XHTML or HTML 4.01 표준 준수
194정성태4/13/200619841VC++: 22. IDL Library 절
193정성태4/13/200620196.NET Framework: 57. IComponentChangeService 인터페이스
192정성태6/1/200617512VC++: 21. Visual C++ struct와 class의 차이점
189정성태4/13/200625165VC++: 20. ActiveX CAB 파일 오류 유형 - 파일을 대상 디렉터리로 복사할 수 없음. [6]
187정성태11/24/200519682VS.NET IDE: 35. VS.NET 2005 IDE Tip - 2번째 : XML / XSL 지원 강화
186정성태11/23/200517020.NET Framework: 56. VS.NET 2005 IDE Tip
182정성태11/21/200517104.NET Framework: 55. 에러가 발생할 것만 같은 코드
181정성태11/20/200546029.NET Framework: 54. 한글이 포함된 ANSI, UTF-8, UNICODE 텍스트 파일 읽기 [3]파일 다운로드1
197정성태12/25/200521424    답변글 .NET Framework: 54.4. [관련 문제] A 태그의 href에서의 문제.
198정성태12/27/200519116    답변글 .NET Framework: 54.5. [추가]: VS.NET으로 UTF-8 홈페이지 구성하기
179정성태11/8/200516781.NET Framework: 53. .NET Remoting: 메시지 교체
178정성태11/5/200517553기타: 11. Dual Core 장만. ^^
177정성태11/2/200517371COM 개체 관련: 17. CoGetClassObjectFromURL파일 다운로드1
176정성태3/29/200622646.NET Framework: 52. covariance? [1]파일 다운로드1
175정성태10/31/200518132.NET Framework: 51. MSXML 6.0에서 디지털 서명 기능을 제거!
180정성태11/15/200518494    답변글 VS.NET IDE: 51.1. MSXML 6.0 정식 릴리스
174정성태10/31/200519299.NET Framework: 50. app.config 예시 [1]
173정성태10/30/200518008스크립트: 5. 스크립트 호출 관계
172정성태10/25/200526425.NET Framework: 49. ASP.NET 오류 유형 : 액세스가 거부되었습니다. [2]
... 181  182  183  184  185  186  187  188  189  190  [191]  192  193  194  195  ...