简体   繁体   English

“未处理FormatException”输入字符串的格式不正确

[英]“FormatException was unhandled” Input string was not in a correct format

I have an error in my website and trying to resolve: Error "format exception was unhandled" such that it work for both date time as well as with string and integer. 我在我的网站中有一个错误,尝试解决:错误“未处理格式异常”,因此它适用于日期时间以及字符串和整数。

Please see the details and code from this link http://tinyurl.com/ydg3u7s 请通过此链接查看详细信息和代码http://tinyurl.com/ydg3u7s

Thanks 谢谢

return Convert.ChangeType(IsThisObjectANull, DataTypeCode);

The conversion is probably failing due to incompatible types . 转换可能由于类型不兼容而失败。 You might have to debug and check when this happens . 您可能需要调试并检查何时发生。

也许一些尝试/捕获机制?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未处理FormatException输入字符串格式不正确 - FormatException was unhandled Input string was not in a correct format “未处理FormatException”输入字符串的格式不正确 - “FormatException was unhandled” Input string was not in a correct format 类型为“ System.FormatException”的未处理的异常输入字符串的格式不正确 - Unhandled exception of type “System.FormatException” Input string was not in correct format 错误:未处理的异常:System.FormatException:输入字符串的格式不正确 - Error: Unhandled Exception: System.FormatException: Input string was not in a correct format “ FormatException未由用户代码处理”输入字符串的格式不正确 - “FormatException was unhandled by user code” Input string was not in a correct format 未处理的异常:System.FormatException:输入字符串的格式不正确 - Unhandled Exception: System.FormatException: Input string was not in a correct format FormatException:输入字符串的格式不正确 - FormatException: Input string was not in the correct format FormatException:输入字符串的格式不正确 - FormatException: Input string was not in the correct format mscorlib.dll中发生了'System.FormatException'类型的未处理的异常其他信息:输入字符串的格式不正确 - An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll Additional information: Input string was not in a correct format c# 如何修复:“未处理的异常:System.FormatException:输入字符串的格式不正确。” - c# How Can I Fix: “Unhandled Exception: System.FormatException: Input string was not in a correct format.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM