【问题标题】:SSIS package using excel source failing on IIS server使用 excel 源的 SSIS 包在 IIS 服务器上失败
【发布时间】:2015-06-01 10:18:30
【问题描述】:

我有一个简单的 SSIS 包,它在 SQL 表中有一个 excel 源转储数据。 手动运行时,它在 BIDS 中运行良好。 从我本地的 ASP.NET 应用程序调用时,它也可以工作。

当在 IIS 服务器上部署相同的 ASP.NET 应用程序时,它给了我以下错误:

The AcquireConnection method call to the connection manager "10.xxx.xx.xxx.<DB>.<User>" failed with error code 0xC0202009

注意: Run64bitRunTime 设置为 false,正如许多帖子中针对类似问题所建议的那样。

可能是什么问题?

运行包的 SQL 作业的错误日志:

SSIS Error Code DTS_E_OLEDB_NOPROVIDER_ERROR.  The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered. Error code: 0x00000000.  An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".  End Error  Error: 2015-06-02 14:26:22.79     Code: 0xC020801C     Source: Data Flow Task Excel Source [1]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0209302.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.  End Error  Error: 2015-06-02 14:26:22.79     Code: 0xC0047017     Source: Data Flow Task SSIS.Pipeline     Description: component "Excel Source" (1) failed validation and returned error code 0xC020801C.  End Error  Error: 2015-06-02 14:26:22.79     Code: 0xC004700C     Source: Data Flow Task SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2015-06-02 14:26:22.79     Code: 0xC0024107     Source: Data Flow Task      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  2:26:21 PM  Finished: 2:26:22 PM  Elapsed:  1.031 seconds.  The package execution failed.  The step failed.,00:00:01,0,0,,,,0

【问题讨论】:

  • 可能是连接或权限。

标签: asp.net sql-server excel iis ssis


【解决方案1】:

通常,当包在 BIDS 和集成服务中运行,但作为作业失败或从外部应用程序调用时,这是与 SSIS 代理相关的权限问题。在 ASP.NET 应用程序中应用的默认登录也应在凭据中设置,然后应在具有应用 SSIS 子系统权限的代理中应用该凭据。

应用以下链接中列出的步骤:

http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/

【讨论】:

  • 但我没有遇到管理员/访问问题。我已经编辑了我的问题以包含错误日志。这是关于 Excel 连接管理器问题。我正在使用带有存储凭据的 xml 配置,并且我已经启用了使用 32 位运行时,这已在互联网上的大多数地方被建议。请建议。
  • 这听起来像是数据库服务器上当前存在的 IIS 服务器缺少连接所需的组件或权限。 Excel 是否安装在 IIS 服务器上?我怀疑它安装在您成功运行 BIDS 和 ASP.NET 代码的数据库服务器上?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多