有关解决此问题的建议?在咨询谷歌机器时,我不断提出“缺失”的行号,这不是我们遇到的问题.我们有一个行号,但它没有指向任何东西,只有一个结束括号.
这可能是因为它超时了吗?它似乎很奇怪,它始终在方法的最后放弃,同样的方法也不少.超时不一定频繁,应用程序(调用asmx Web服务的win表单)有时会在其他地方超时.
编辑:代码和堆栈跟踪.
public DataSet GetData(...) { // About 18 try/catch blocks loading tables in dataset, all similar to below try { // Create Table Adapter // Fill Table } catch (Exception ex) { LogError(ex, System.Reflection.MethodBase.GetCurrentMethod(), null); throw ex; } } //Line 479
System.Web.Services.Protocols.SoapException:
System.Web.Services.Protocols.SoapException: Server was unable to process request. —> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at MonitoringDataService.AddAllData(DataSet Data, DateTime LastSync, String PrevAreas, String NewAreas, DateTime PrevStartDate, DateTime PrevEndDate, DateTime NewStartDate, DateTime NewEndDate, Int32 CurrentUser, Boolean IsInGroup) in MonitoringDataService.cs:line 479
值得注意的是,这是内在的例外.
可能的原因:>正在运行的代码与您调试的源代码不同.这是最可能的原因.>行可以是抛出新异常后的行(…)
精彩评论