DataSet column mapping throws an InvalidOperationException exception when the specified column is missing in a Visual C# application (307989)
The information in this article applies to:
- Microsoft ADO.NET (included with the .NET Framework)
- Microsoft ADO.Net 2.0
- Microsoft Visual C# .NET (2002)
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# 2005
This article was previously published under Q307989 For a Microsoft Visual Basic .NET version of this article, see 307170.
This article refers to the following Microsoft .NET Framework Class Library namespaces:
- System.Data.Common
- System.Data.OleDb
SYMPTOMS
When you use DataSet column mapping in ADO.NET, an InvalidOperationException exception is thrown if the MissingMappingAction property is set to Error, and if the column mapping that you specify is missing.
RESOLUTION
To resolve this problem, ensure that the column mapping that you specify exists. Refer to the "More Information" section for code that checks whether the specified column mapping exists.
REFERENCES
For more information on ADO.NET objects and syntax, refer to the following Microsoft .NET Framework Software Development Kit (SDK) documentation:
Modification Type: | Minor | Last Reviewed: | 10/4/2006 |
---|
Keywords: | kbtshoot kberrmsg kbnofix kbprb kbSystemData KB307989 kbAudDeveloper |
---|
|