You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS2022构建SSIS项目失败,报错0xC0010014

SSIS项目合并分支后构建/重建失败问题

将分支合并到主分支后,Visual Studio 2022中的Integration Services(SSIS)项目构建/重建开始失败,报错提示应有前置具体错误,但无相关详细信息,输出窗口完整内容如下:

Rebuild started...  
------ Rebuild All started: Project: My.CRM.SSIS, Configuration: Development ------  
Build started: SQL Server Integration Services project: Full ...  
Starting project consistency check ...  
Error : Microsoft.SqlServer.Dts.Runtime.DtsRuntimeException: The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails.  
 ---> System.Runtime.InteropServices.COMException: The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails.  

   at Microsoft.SqlServer.Dts.Runtime.Wrapper.ApplicationClass.LoadPackage(String FileName, Boolean loadNeutral, IDTSEvents100 pEvents)  
   at Microsoft.SqlServer.Dts.Runtime.Application.LoadPackage(String fileName, IDTSEvents100 events, Boolean loadNeutral)  
   --- End of inner exception stack trace ---  
   at Microsoft.SqlServer.Dts.Runtime.Application.LoadPackage(String fileName, IDTSEvents100 events, Boolean loadNeutral)  
   at Microsoft.SqlServer.Dts.Runtime.Application.LoadPackage(String fileName, IDTSEvents events)  
   at Microsoft.DataTransformationServices.Project.ProjectBuildItemInfo.Update(DateTime lastWriteTime, PackageItem packageItem, Project project, String projectDirectory)  
   at Microsoft.DataTransformationServices.Project.ProjectBuildItemInfo..ctor(String name, DateTime lastWriteTime, PackageItem packageItem, Project project, String projectDirectory)  
   at Microsoft.DataTransformationServices.Project.ProjectBuildValidator.RefreshCache(PackageItem item)  
   at Microsoft.DataTransformationServices.Project.ProjectBuildValidator.CheckBuildItem(PackageItem item)  
   at Microsoft.DataTransformationServices.Project.ProjectBuildValidator.CheckConsistency(String& errors, String buildLogFullName)  
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.IncrementalBuildThroughObj(IOutputWindow outputWindow)  
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.BuildIncremental(IOutputWindow outputWindow)  
Build complete -- 1 errors, 0 warnings  
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========  
========== Rebuild started at 2:42 PM and took 11.507 seconds ==========  

更多行为特征

  • 问题始于将分支合并到主分支后(间隔约数周,期间有数百次提交)
  • 打开项目中所有三个包时,项目/解决方案可成功重建
  • 打开所有包重建成功后,无需打开包即可成功构建项目/解决方案
  • 再次重建时(未打开包)仍会出现相同错误,需重新打开所有包才能成功重建

已尝试但无效的操作

  • 删除bin、debug、obj文件夹
  • 删除(project).dtproj.user文件
  • 使用Dev Command Prompt中的MSBuild构建失败,报错:

    My.CRM.SSIS.dtproj(3,3): error MSB4067: The element DeploymentModel beneath element Project is unrecognized.
    (测试其他正常构建的SSIS项目也出现该错误,推测为通用问题)

  • 使用Dev Command Prompt中的DevEnv.exe构建也出现上述相同错误:
    devenv My.ETL.sln /rebuild Development
    

环境版本

Visual Studio Community 2022 version 17.5.4

更新说明

打开所有包重建时,VS会修改并保存.dtproj文件,但后续未打开包时重建仍失败。


内容的提问来源于stack exchange,提问作者Khadim Ali

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.23 13:57:48