日志含义加载net_connection_reset失败
本文关键字:connection 失败 reset net 加载 日志 | 更新日期: 2023-09-27 18:03:23
在我的本地系统中,应用程序工作正常。当我上传文件到服务器时,我得到以下错误:
加载net_err_connection_reset失败
使用下面的代码查找缺失的库。
using System.IO;
using System.Reflection;
using System.Text;
try
{
//The code that causes the error goes here.
}
catch (ReflectionTypeLoadException ex)
{
StringBuilder sb = new StringBuilder();
foreach (Exception exSub in ex.LoaderExceptions)
{
sb.AppendLine(exSub.Message);
FileNotFoundException exFileNotFound = exSub as FileNotFoundException;
if (exFileNotFound != null)
{
if(!string.IsNullOrEmpty(exFileNotFound.FusionLog))
{
sb.AppendLine("Fusion Log:");
sb.AppendLine(exFileNotFound.FusionLog);
}
}
sb.AppendLine();
}
string errorMessage = sb.ToString();
//Display or log the error based on your application.
}