DataSet column mapping throws an InvalidOperationException exception when the specified column is missing in ADO.NET (307170)
The information in this article applies to:
- Microsoft ADO.Net 2.0
- Microsoft ADO.NET (included with the .NET Framework)
- Microsoft Visual Basic .NET (2002)
- Microsoft .NET Framework
- Microsoft .NET Framework 2.0
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic 2005
This article was previously published under Q307170 For a Microsoft Visual C# .NET version of this article, see 307989.
This article refers to the following Microsoft .NET Framework Class Library namespaces:
SYMPTOMS
When you use DataSet column mapping in ADO.NET, an InvalidOperationException exception is thrown if the MissingMappingAction property is set to Error and 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/3/2006 |
---|
Keywords: | kbtshoot kberrmsg kbnofix kbprb kbreadme kbSystemData KB307170 kbAudDeveloper |
---|
|