System.Net.Sockets.SocketException (0x80004005) 当应用程序帐户被注销

问题描述

我有一个 sql Server 代理作业,用于执行存储在 SSISDB 中的 SSIS 包。其中一项任务是控制台应用程序的执行。控制台应用程序与组织外部托管的 Web 服务连接。作业的任务配置了作为域帐户的代理帐户。

当代理(域)帐户登录到托管作业和包的服务器时,该作业运行良好,手动执行或按计划执行。

但是当代理账户注销时,控制台应用程序抛出以下错误

内部异常:: System.Net.sockets.socketException (0x80004005): 连接尝试失败,因为连接方在一段时间后没有正确响应,或者建立连接失败,因为连接的主机没有响应 109.205.54.105 :443 at System.Net.sockets.socket.DoConnect(EndPoint endPointSnapshot,SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,Socket s4,Socket s6,Socket& socket,IPAddress& address,ConnectSocketState state,IAsyncResult asyncResult,Exception&例外)

代理帐户在本地管理员组中。我尝试将帐户添加到分布式 COM 用户,但这没有帮助。拥有 Web 服务的供应商表示日志中没有任何问题。

是什么导致了这个错误?如何解决?感谢您的帮助。

更新

我已经与安全团队核对过,当应用程序登录时,流量似乎通过代理进行。应用帐号注销后,直接撞到防火墙,断开连接。

到目前为止我尝试过的方法没有帮助:

  • IE 中应用程序帐户的代理配置

  • 注册表中的代理配置

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet 设置 迁移代理=1 代理启用=1 ProxyServer=列出的代理服务器

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections DefaultConnectionSettings=列出的代理服务器 SavedLegacySettings=列出的代理服务器

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections WinHTTPSettings=通过运行以下命令列出的代理服务器

    netsh winhttp 导入代理源=ie

导致错误的事情:

<system.net>  
    <defaultProxy>  
      <proxy usesystemdefault="true" />
    </defaultProxy>  
</system.net>

.NET 运行时

应用程序:iPersonel.SendData.exe 框架版本:v4.0.30319 描述:进程因未处理的异常而终止。 异常信息:System.Configuration.ConfigurationErrorsException 在 System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean) 在 System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(System.Configuration.ConfigurationSchemaErrors) 在 System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors() 在 System.Configuration.ClientConfigurationSystem.EnsureInit(System.String)

异常信息:System.Configuration.ConfigurationErrorsException 在 System.Configuration.ClientConfigurationSystem.EnsureInit(System.String) 在 System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(System.String) 在 System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(System.String) 在 System.Configuration.ConfigurationManager.get_AppSettings() 在 SendData.Log.Logger..cctor()

异常信息:System.TypeInitializationException 在 SendData.Log.Logger.GetorRegister() 在 SendData.Program.Main(System.String[])

应用错误

错误的应用程序名称:iPersonel.SendData.exe,版本:1.0.0.0,时间戳:0xad1edd6c 错误模块名称:KERNELBASE.dll,版本:10.0.17763.2028,时间戳:0xc13cbc1f 异常代码:0xe0434352 故障偏移:0x00123522 错误进程 ID:0x25f4 错误的应用程序启动时间:0x01d788539cbe6d32 错误的应用程序路径:D:\PLPayrollInterface\ConsoleApp\iPersonel.SendData.exe 错误模块路径:C:\Windows\System32\KERNELBASE.dll 报告 ID:a2658be2-a18b-417f-ba29-6c525332b0cd 错误包全名: 错误的程序包相关应用程序 ID:

.NET 运行时错误是否表示 app.config 文件中有问题?项目编译没有错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...