【问题标题】:SSIS execution and deployment error "System.IO.FileLoadException: Could not load file or assembly"SSIS 执行和部署错误“System.IO.FileLoadException:无法加载文件或程序集”
【发布时间】:2021-09-10 02:29:47
【问题描述】:

自去年以来,我已经将一些 SSIS 部署到 SQL 2012,所有这些都已启动并运行,没有任何问题。开始提示这个错误

A .NET Framework error occurred during execution of user-defined routine or aggregate "set_system_informations":   
System.TypeInitializationException: The type initializer for 'System.Data.SqlClient.SqlConnection' 
threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)  
System.IO.FileLoadException:      
  at System.Data.SqlClient.SqlConnection..cctor()  
System.TypeInitializationException:      
  at System.Data.SqlClient.SqlConnection..ctor(String connectionString)     
  at Microsoft.SqlServer.IntegrationServices.Server.SystemInformations.SetSystemInformations(SqlInt64 operationId) 
 .  Source: .Net SqlClient Data Provider

只是运行失败,我尝试再次部署到SQL,出现类似错误如下

A .NET Framework error occurred during execution of user-defined routine or aggregate "deploy_project_internal": 
System.TypeInitializationException: The type initializer for 'System.Data.SqlClient.SqlConnection' 
threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)
System.IO.FileLoadException: 
   at System.Data.SqlClient.SqlConnection..cctor()
System.TypeInitializationException: 
   at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
   at Microsoft.SqlServer.IntegrationServices.Server.ServerConnectionControl.GetOperationInfo(SqlInt64 operation_id, OperationType type, ServerOperationStatus status, Int64& object_id)
   at Microsoft.SqlServer.IntegrationServices.Server.ServerConnectionControl.checkParameters(SqlInt64 object_id, SqlInt64 operation_id, OperationType type)
   at Microsoft.SqlServer.IntegrationServices.Server.ServerApi.DeployProjectInternal(SqlInt64 deployId, SqlInt64 versionId, SqlInt64 projectId, SqlString projectName)
. (.Net SqlClient Data Provider)

我直接从 VS2017(SSDT) 运行 SSIS 没有问题,只是无法部署并让它在服务器上运行。我不确定这是什么根本原因,昨天一切正常,今天开始抛出错误。

有人遇到过这个问题吗?

【问题讨论】:

  • 分页文件太小,无法完成此操作。 听起来执行 SSIS 包的机器内存不足。你能增加交换文件/s(又名分页文件/s)的大小吗?

标签: sql-server ssis


【解决方案1】:

您可能引用了不同版本的 System.Configuration。它可以作为另一个库的依赖项添加。在此期间版本号可能已经跳跃,并且您正在引用旧版本。无论如何,您可以覆盖您的 csproj 中的版本。

【讨论】:

    猜你喜欢
    • 2013-08-13
    • 1970-01-01
    • 2014-05-19
    • 2020-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-06
    相关资源
    最近更新 更多