社区
C#
帖子详情
application.run 产生的argumentException
ziyi08082010
2010-09-09 09:39:20
这是一个由vs2003转换到vs2008下的项目,在启动时
System.Windows.Forms.Application.Run(new frmReportDerictory());
会出现如下异常信息:
未处理的ArgumentException
类型“System.Int32”的对象无法转换为类型“System.UInt32”。
请教这是哪里出的问题?
...全文
29
3
打赏
收藏
application.run 产生的argumentException
这是一个由vs2003转换到vs2008下的项目,在启动时 System.Windows.Forms.Application.Run(new frmReportDerictory()); 会出现如下异常信息: 未处理的ArgumentException 类型“System.Int32”的对象无法转换为类型“System.UInt32”。 请教这是哪里出的问题?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
ziyi08082010
2010-09-09
打赏
举报
回复
大牛,你让我把Convert.ToUInt32写在哪里呢?
wuyq11
2010-09-09
打赏
举报
回复
Convert.ToUInt32
ziyi08082010
2010-09-09
打赏
举报
回复
顶一下自己
C#.Net应用程序异常处理
在Program.cs文件的static void Main()中,修改如下: static void Main() { try { //设置应用程序处理异常方式:Thread
Exception
处理
Application
.
Winform
Application
.SetUnhandled
Exception
Mode Method
Application
.SetUnhandled
Exception
Mode 方法 可以设置程序的一场处理, 参数是一个 Unhandled
Exception
Mode 的枚举 参数值 说明 Automatic 将所有异常路由到 Thread
Exception
处理程序,除非应用程序的配置文件另有指定。 Catch
Exception
总是将异常路由抛到 Thread
Exception
处理程序。忽略应用程序配置文件。 Throw
Exception
不要将异常路由到 ThreadExce
Application
.Thread
Exception
以及 AppDomain.Unhandled
Exception
真强!
以前反射调用dll,经常因为dll的问题,出现异常,但是主程序却捕捉不到,导致主程序退出。 改用
Application
.Thread
Exception
以及 AppDomain.Unhandled
Exception
,程序确实稳定了很多。 用法示例: Thread newThread = null; // Starts the
application
. [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissio
Application
.SetUnhandled
Exception
Mode 方法 (Unhandled
Exception
Mode)
Thread newThread = null; // Starts the
application
. [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.ControlAppDomain)] public static void Main(string[] args) { // Add ...
SharePoint Error : System.
Argument
Exception
. Value does not fall within the expected range
之前做SharePoint的时候遇到这个错误 ..... System.
Argument
Exception
. Value does not fall within the expected range. at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, In...
C#
110,534
社区成员
642,576
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章