C#应用程序中异常的含义:“不合法的OleAut日期”? [英] Meaning of exception in C# app: "Not a legal OleAut date"?

查看:2058
本文介绍了C#应用程序中异常的含义:“不合法的OleAut日期”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道这是什么意思。获取C#winforms应用程序:


不合法的OleAut日期



解决方案

这意味着程序中的某个地方正在尝试转换为OLE自动化日期或从BCL到公元前4713年12月31日的有效范围内的转换,公元9999年它可能已经滑落,因为OLE自动化日期被表示为双重



首先寻找方法的任何用途:



DateTime.FromOADate



DateTime.ToOADate


Does anyone know what this means. Getting this in C# winforms applications:

Not a legal OleAut date

解决方案

It means that somewhere in the program is attempting to convert to or from an OLE Automation Date outside the valid range 1-January-4713 BC to 31-December-9999 AD. It might have slipped through because OLE Automation Dates are represented as a double.

Start by looking for any uses of the methods:

DateTime.FromOADate

DateTime.ToOADate

这篇关于C#应用程序中异常的含义:“不合法的OleAut日期”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆