最新的Windows更新(W10 Pro 2004)中断SqlServerTypes-DataReader。GetFieldType(24)返回空值

最新的Windows更新(W10 Pro 2004)中断SqlServerTypes-DataReader。GetFieldType(24)返回空值,sql,sql-server,Sql,Sql Server,安装更新后,在尝试填充数据表时,我总是会遇到此错误。如果我回滚更新,那么一切都会恢复正常 我在这篇文章中尝试了一切,但都没有成功: 我使用System.Data.SqlClient 4.8.2 有什么建议吗 这是异常消息: System.InvalidOperationException:DataReader.GetFieldType(24)返回null。 在System.Data.ProviderBase.SchemaMapping.SetupSchemaWaWithoutKeyInfo处(

安装更新后,在尝试填充数据表时,我总是会遇到此错误。如果我回滚更新,那么一切都会恢复正常

我在这篇文章中尝试了一切,但都没有成功:

我使用System.Data.SqlClient 4.8.2

有什么建议吗

这是异常消息: System.InvalidOperationException:DataReader.GetFieldType(24)返回null。 在System.Data.ProviderBase.SchemaMapping.SetupSchemaWaWithoutKeyInfo处(缺少mappingAction mappingAction、缺少schemaAction schemaAction、Boolean gettingData、DataColumn parentChapterColumn、Object chapterValue) 位于System.Data.ProviderBase.SchemaMapping..ctor(DataAdapter适配器、DataSet DataSet、DataTable DataTable、DataReaderContainer dataReader、Boolean keyInfo、SchemaType SchemaType、String sourceTableName、Boolean gettingData、DataColumn parentChapterColumn、Object parentChapterValue) 位于System.Data.Common.DataAdapter.FillMappingInternal(数据集数据集、数据表数据表、字符串srcTable、数据读取器容器数据读取器、Int32 schemaCount、数据列parentChapterColumn、对象parentChapterValue) 位于System.Data.Common.DataAdapter.FillMapping(数据集数据集、数据表数据表、字符串srcTable、数据读取器容器数据读取器、Int32 schemaCount、数据列parentChapterColumn、对象parentChapterValue) 位于System.Data.Common.DataAdapter.FillFromReader(数据集数据集、数据表数据表、字符串srcTable、数据读取器容器数据读取器、Int32 startRecord、Int32 maxRecords、数据列parentChapterColumn、对象parentChapterValue) 位于System.Data.Common.DataAdapter.Fill(DataTable[]dataTables,IDataReader dataReader,Int32 StartRecords,Int32 maxRecords) 位于System.Data.Common.DbDataAdapter.FillInternal(数据集数据集,数据表[]数据表,Int32 StartRecords,Int32 maxRecords,字符串srcTable,IDbCommand命令,CommandBehavior) 位于System.Data.Common.DbDataAdapter.Fill(DataTable[]dataTables,Int32 StartRecords,Int32 maxRecords,IDbCommand命令,CommandBehavior) 位于System.Data.Common.DbDataAdapter.Fill(DataTable)
在Pscl.Data.SqlClient.SqlClientExtensions.FillTable(SqlConnection cn、SqlTransaction tn、DataTable、String sql、Dictionary`2参数、LoadOption fillLoadOption)

通过删除System.Data.SqlClient并使用以下软件包,我能够在.NET Framework 4.7.2中实现此功能:Microsoft.Data.SqlClient 2.0.1 Microsoft.SqlServer.Types 10.50.1600.1