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

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

问题描述

有谁知道这意味着什么。在C#中获取此的WinForms应用程序:




不是合法OLEAUT日期



解决方案

这意味着,在某个程序试图转换或超出有效范围的OLE自动化日期1月 - 4713年至公元前31 December-公元9999。 双击



开始。 >

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天全站免登陆