Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

XSD 파일을 포함한 프로젝트 - The type or namespace name 'TypedTableBase<>' does not exist in the namespace 'System.Data'

제 경우에, 기존 .NET 4.0 프로젝트를 .NET 4.6으로 Target Framework을 변경했더니, 곧바로 다음과 같은 예외가 발생했습니다.

Rebuild started...
1>------ Rebuild All started: Project: Jennifer40.WebSiteTest4, Configuration: Debug x64 ------
1>C:\temp\MyTestWebApp\AccountDataSet.Designer.cs(280,69,280,95): error CS0234: The type or namespace name 'TypedTableBase<>' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
1>C:\temp\MyTestWebApp\AccountDataSet.Designer.cs(395,59,395,64): error CS0115: 'AccountDataSet.AccountDataTable.Clone()': no suitable method found to override
1>C:\temp\MyTestWebApp\AccountDataSet.Designer.cs(403,62,403,76): error CS0115: 'AccountDataSet.AccountDataTable.CreateInstance()': no suitable method found to override
1>C:\temp\MyTestWebApp\AccountDataSet.Designer.cs(442,60,442,77): error CS0115: 'AccountDataSet.AccountDataTable.NewRowFromBuilder(DataRowBuilder)': no suitable method found to override
1>C:\temp\MyTestWebApp\AccountDataSet.Designer.cs(448,52,448,62): error CS0115: 'AccountDataSet.AccountDataTable.GetRowType()': no suitable method found to override
1>C:\temp\MyTestWebApp\AccountDataSet.Designer.cs(454,37,454,49): error CS0115: 'AccountDataSet.AccountDataTable.OnRowChanged(DataRowChangeEventArgs)': no suitable method found to override
1>C:\temp\MyTestWebApp\AccountDataSet.Designer.cs(463,37,463,50): error CS0115: 'AccountDataSet.AccountDataTable.OnRowChanging(DataRowChangeEventArgs)': no suitable method found to override
1>C:\temp\MyTestWebApp\AccountDataSet.Designer.cs(472,37,472,49): error CS0115: 'AccountDataSet.AccountDataTable.OnRowDeleted(DataRowChangeEventArgs)': no suitable method found to override
1>C:\temp\MyTestWebApp\AccountDataSet.Designer.cs(481,37,481,50): error CS0115: 'AccountDataSet.AccountDataTable.OnRowDeleting(DataRowChangeEventArgs)': no suitable method found to override
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

^^ 당황하지 마시고, 위의 경우 오류가 난 파일명이 AccountDataSet.Designer.cs 파일인데요, 그렇다면 해당 프로젝트에 AccountDataSet.xsd 파일이 있을 것입니다. 그 파일을 열어서 단순히 "Ctrl + S(Save)" 키를 눌러 한 번 더 저장하면 AccountDataSet.Designer.cs 파일의 소스 코드가 다시 재생성됩니다.

이후로 빌드하면 오류 메시지가 사라져 있을 것입니다.




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







[최초 등록일: ]
[최종 수정일: 5/3/2021]

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)
751정성태7/9/200929778.NET Framework: 152. 순환 참조와 XmlSerializer파일 다운로드1
750정성태7/7/200929914.NET Framework: 151. Team Explorer가 설치되지 않은 PC에서 System.InvalidProgramException 예외 발생파일 다운로드1
748정성태7/2/200928331.NET Framework: 150. WPF - Property Element 사용 의미파일 다운로드2
747정성태7/1/200947503.NET Framework: 149. WPF - UI 업데이트를 바로 반영하고 싶다면? [3]파일 다운로드1
746정성태6/25/200934515.NET Framework: 148. WPF - 데이터 바인딩 시의 예외 처리 방법 [1]파일 다운로드1
745정성태6/22/200926408.NET Framework: 147. WPF - Binding에 Sibling 요소 지정 [2]파일 다운로드1
744정성태6/21/200925083.NET Framework: 146. WPF - 중첩된 ScrollViewer의 크기 제어 [2]파일 다운로드1
743정성태6/17/200929425.NET Framework: 145. Unity Container 개체 풀이
742정성태6/17/200928773.NET Framework: 144. WPF - FrameworkElement.Parent 속성이 null이라면? [3]
740정성태6/12/200926436.NET Framework: 143. WPF - Transform의 역변환파일 다운로드1
739정성태6/8/200939396.NET Framework: 142. WPF - Grid 컨트롤의 ShowGridLine 개선 [5]파일 다운로드1
737정성태6/6/200945366.NET Framework: 141. Win32 Interop - 크기가 정해지지 않은 배열을 C++에서 C#으로 전달하는 경우파일 다운로드2
734정성태6/4/200927974.NET Framework: 140. WPF - CellPadding 속성을 구현하는 Grid Layout [2]파일 다운로드1
733정성태5/29/200933488.NET Framework: 139. WPF - "M/d/yyyy h:mm:ss tt" 형식으로만 날짜를 출력하는 문제
732정성태5/27/200928413Team Foundation Server: 32. 팀 빌드 오류 확인 방법
731정성태5/27/200923337Team Foundation Server: 31. 팀 빌드 스케줄 확인 방법
730정성태5/26/200929203VS.NET IDE: 63. Visual Studio 2010 - Parallel Stacks [1]
729정성태5/25/200928706.NET Framework: 138. InternalsVisibleTo와 Public Key 값
728정성태5/23/200939094.NET Framework: 137. C#에서 Union 구조체 다루기파일 다운로드1
727정성태5/22/200924141오류 유형: 82. 메서드가 많은 경우 프록시 클래스 생성 실패
726정성태5/21/200923468VS.NET IDE: 62. Visual Studio 2010 Beta1 버그 피드백 - EnC기능 오류 [1]
725정성태5/21/200926983VS.NET IDE: 61. Visual Studio 2010 베타1과 Visual Studio 2008의 혼합 개발 [2]
724정성태5/19/200942001.NET Framework: 136. 자바와 닷넷의 압축 호환파일 다운로드2
723정성태5/18/200935346.NET Framework: 135. C# - Deflate, GZip, Zip
722정성태5/18/200923585개발 환경 구성: 45. SQL 서버 2008 백업 구성 [2]
721정성태5/14/200929250오류 유형: 81. Package 실행 오류 - Error 15404
... 166  167  168  169  170  171  [172]  173  174  175  176  177  178  179  180  ...