如何确定WPF应用程序中哪个文件引起System.IO.FileNotFoundException?

时间:2019-05-07 06:34:13

标签: c# wpf

我在wpf应用程序中不断收到系统IO异常,但我无法弄清楚是哪个文件引起了问题-如何获得提示?

  

应用程序:Click2Dial.exe       框架版本:v4.0.30319       说明:由于未处理的异常,进程已终止。       异常信息:System.IO.FileNotFoundException          在System.IO .__ Error.WinIOError(Int32,System.String)          在System.IO.FileStream.Init(System.String,System.IO.FileMode,System.IO.FileAccess,Int32,Boolean,System.IO.FileShare,Int32,System.IO.FileOptions,SECURITY_ATTRIBUTES,System.String,Boolean ,布尔值,布尔值)          在System.IO.FileStream..ctor(System.String,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)          在System.Drawing.Icon..ctor(System.String,Int32,Int32)          在Click2Dial.Settings..ctor()          在Click2Dial.Login.login_click(System.Object,System.Windows.RoutedEventArgs)          在Click2Dial.Login..ctor()

0 个答案:

没有答案
相关问题