故障排除system.io.fileloadexception故障排除、system、fileloadexception、io

2023-09-05 23:13:58 作者:开心就好

我有我的机器上运行的罚款。NET 3.5 WinForms应用程序,但在另一台机器它马上用system.io.fileloadexception崩溃。不幸的是,绝对没有关于哪些文件加载​​失败,所以我不知道哪里出了问题实际上是。

我相信我知道是哪一个也可能是(SQL Server精简版本),但在此之前我漫无目的的狩猎,我不知道是否有一个适当的方式,找出是什么原因造成的fileloadexception,比使用FileMon的Sysinternals公司等。

唯一的错误信息是:

  

事件类型clr20r3,P1 myapplication.exe,P2 2.1.0.0,P3 490eca78,MyApplication的P4,P5 2.1.0.0,P6 490eca78,P7 2E,P8 21 P9 system.io.fileloadexception,P10 NIL。

解决方案

打开融合记录?

这种由布拉德·威尔逊博客条目给出了做什么,如果信息失败...

I have a .net 3.5 WinForms application that runs fine on my machine, but on another machine it immediately crashes with a system.io.fileloadexception. Unfortunately, there are absolutely no details on which file failed to load, so I do not know where the problem actually is.

Unity 无法引用 System.IO.Ports 解决办法

I believe I know which one it could be (SQL Server Compact edition), but before I aimlessly hunt, I wonder if there is a proper way to find out what caused the fileloadexception, other than using FileMon from SysInternals.

The only error message is:

EventType clr20r3, P1 myapplication.exe, P2 2.1.0.0, P3 490eca78, P4 myapplication, P5 2.1.0.0, P6 490eca78, P7 2e, P8 21, P9 system.io.fileloadexception, P10 NIL.

解决方案

Turn on fusion logging?

This blog entry from Brad Wilson gives information on what to do if that fails...