升级程序DataTable.ReadXml报错:MySql.Data.Types.MySqlDateTime is not allowed here
升级程序DataTable.ReadXml报错:MySql.Data.Types.MySqlDateTime is not allowed here
错误信息:
解决方案:

XML Code:
<allowedTypes>
<!-- <add type="assembly qualified type name" /> -->
<add type="MySql.Data.Types.MySqlDateTime, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
<!-- additional <add /> elements as needed -->
</allowedTypes>
//来源:C/S框架网 | www.csframework.com | QQ:23404761
<!-- <add type="assembly qualified type name" /> -->
<add type="MySql.Data.Types.MySqlDateTime, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
<!-- additional <add /> elements as needed -->
</allowedTypes>
//来源:C/S框架网 | www.csframework.com | QQ:23404761
App.config文件:
XML Code:
<configuration>
<configSections>
<sectionGroup name="system.data.dataset.serialization" type="System.Data.SerializationSettingsSectionGroup, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="allowedTypes" type="System.Data.AllowedTypesSectionHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
</configSections>
<system.data.dataset.serialization>
<allowedTypes>
<!-- <add type="assembly qualified type name" /> -->
<add type="MySql.Data.Types.MySqlDateTime, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
<!-- additional <add /> elements as needed -->
</allowedTypes>
</system.data.dataset.serialization>
</configuration>
//来源:C/S框架网 | www.csframework.com | QQ:23404761
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="system.data.dataset.serialization" type="System.Data.SerializationSettingsSectionGroup, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="allowedTypes" type="System.Data.AllowedTypesSectionHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
</configSections>
<system.data.dataset.serialization>
<allowedTypes>
<!-- <add type="assembly qualified type name" /> -->
<add type="MySql.Data.Types.MySqlDateTime, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
<!-- additional <add /> elements as needed -->
</allowedTypes>
</system.data.dataset.serialization>
</configuration>
//来源:C/S框架网 | www.csframework.com | QQ:23404761

参考文档:
GIT报错:Could not get HEAD hash. libgit2 returned:repository path "xx" is not owned by current user
FastReport.NET报错 System.PlatformNotSupportedException:“Operation is not supported on this platform.”
升级程序MySQL测试报告:Packets larger than max_allowed_packet are not allowed 的解决方案
.NETCore WebApi运行报错:System.AggregateException:“Some services are not able to be constructed|C/S开发框架
XtraReport 报错:Report scripts were found in the application while the script execution is disabled.
运行升级程序报错:系统找不到指定的文件。
The server factory could not be located for the given input: Microsoft.Owin.Host.HttpListener
FastReport报错:TfrxReportClass cold not be found!
IIS承载WCF部署报错:未能加载文件或程序集或它的某一个依赖项(但是VS运行正常)
CSFramework版本自动升级程序AutoUpgrader增加日志Log功能
关于ORM实体类主键设置的几点建议(Tag:复合主键,ISID,PK)|C/S开发框架
CSFramework.EF数据库框架测试MySqlBulkLoader批量插入功能报错(解决方案)
主程序集成升级程序-C/S开发框架
ASP.NET编译网站报错:未能加载类型.Global.asax,把CodeBehind改为CodeFile即可
C#微信支付完成前端回调通知notify_url完整版源码|CSframework.com原创文章
微信支付后台服务器返回的接口通知notify_url(回调接口设计)-C/S框架网
GIT报错:Could not get HEAD hash. libgit2 returned:repository path "xx" is not owned by current user
FastReport.NET报错 System.PlatformNotSupportedException:“Operation is not supported on this platform.”
升级程序MySQL测试报告:Packets larger than max_allowed_packet are not allowed 的解决方案
.NETCore WebApi运行报错:System.AggregateException:“Some services are not able to be constructed|C/S开发框架
XtraReport 报错:Report scripts were found in the application while the script execution is disabled.
运行升级程序报错:系统找不到指定的文件。
The server factory could not be located for the given input: Microsoft.Owin.Host.HttpListener
FastReport报错:TfrxReportClass cold not be found!
IIS承载WCF部署报错:未能加载文件或程序集或它的某一个依赖项(但是VS运行正常)
CSFramework版本自动升级程序AutoUpgrader增加日志Log功能
关于ORM实体类主键设置的几点建议(Tag:复合主键,ISID,PK)|C/S开发框架
CSFramework.EF数据库框架测试MySqlBulkLoader批量插入功能报错(解决方案)
主程序集成升级程序-C/S开发框架
ASP.NET编译网站报错:未能加载类型.Global.asax,把CodeBehind改为CodeFile即可
C#微信支付完成前端回调通知notify_url完整版源码|CSframework.com原创文章
微信支付后台服务器返回的接口通知notify_url(回调接口设计)-C/S框架网
其它资料:
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 5.1旗舰版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | 三层体系架构详解 | C/S架构轻量级快速开发框架 | C/S框架网客户案例 | WebApi快速开发框架 | C/S框架代码生成器 | 用户授权注册软件系统 | 版本自动升级软件 | 数据库底层应用框架 | CSFramework.CMS内容管理系统 |
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 5.1旗舰版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | 三层体系架构详解 | C/S架构轻量级快速开发框架 | C/S框架网客户案例 | WebApi快速开发框架 | C/S框架代码生成器 | 用户授权注册软件系统 | 版本自动升级软件 | 数据库底层应用框架 | CSFramework.CMS内容管理系统 |
在线客服

