使用Enable Just My Code = false进行调试会显示很多异常,如何查找原因?

时间:2018-07-04 12:13:14

标签: c# .net visual-studio

我通常将以下调试选项设置为true(选中)来运行我的项目;

工具->选项->调试->常规->启用仅我的代码(仅受管理)

今天,我试图弄清楚一些事情,但我没有发现。然后,当我执行命令时,我看到了很多异常。他们看起来像这样;

  

抛出异常:mscorlib.dll中的'System.IO.FileNotFoundException'   引发异常:mscorlib.dll中的“ System.IO.FileNotFoundException”   引发异常:System.Data.dll中的“ System.Data.SqlClient.SqlException”   引发异常:System.Data.dll中的“ System.Data.SqlClient.SqlException”   引发异常:System.Data.dll中的“ System.Data.SqlClient.SqlException”   引发异常:System.Data.dll中的“ System.Data.SqlClient.SqlException”   抛出异常:EntityFramework.dll中的'System.Data.Entity.Core.EntityCommandExecutionException'   抛出异常:EntityFramework.dll中的'System.Data.Entity.Core.EntityCommandExecutionException'   抛出异常:EntityFramework.dll中的'System.Data.Entity.Core.EntityCommandExecutionException'   抛出异常:EntityFramework.SqlServer.dll中的'System.Data.Entity.Core.EntityCommandExecutionException'   引发异常:System.Data.dll中的“ System.Data.SqlClient.SqlException”   引发异常:System.Data.dll中的“ System.Data.SqlClient.SqlException”   引发异常:System.Data.dll中的“ System.Data.SqlClient.SqlException”   引发异常:System.Data.dll中的“ System.Data.SqlClient.SqlException”   抛出异常:EntityFramework.dll中的'System.Data.Entity.Core.EntityCommandExecutionException'   抛出异常:EntityFramework.dll中的'System.Data.Entity.Core.EntityCommandExecutionException'   抛出异常:EntityFramework.dll中的'System.Data.Entity.Core.EntityCommandExecutionException'   抛出异常:EntityFramework.SqlServer.dll中的'System.Data.Entity.Core.EntityCommandExecutionException'   引发异常:mscorlib.dll中的“ System.IO.FileNotFoundException”   引发异常:mscorlib.dll中的'System.IO.FileNotFoundException'

我不认为这是正常现象,我怀疑这只是引起恐慌的原因!我感觉我的项目已经运行了一段时间了,但是还不确定...

找出导致这些异常的原因的最佳方法是什么?

0 个答案:

没有答案
相关问题