每次我尝试添加ssis自定义组件时,都会弹出此错误
注意: - 此组件在数据工具2010和2013上运行正常,此问题仅在Data Tool 2015上发生
是否有任何遗漏以及如何解决它
我的.net framework 4.0
错误如下: enter image description here
TITLE: Microsoft Visual Studio
The component could not be added to the Data Flow task.
Could not initialize the component. There is a potential problem in the ProvideComponentProperties method.
------------------------------
ADDITIONAL INFORMATION:
Error at Data Flow Task [DTS [7]]: System.MissingMethodException: Method not found: 'Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSComponentMetaData100 Microsoft.SqlServer.Dts.Pipeline.PipelineComponent.get_ComponentMetaData()'.
at CustomProparties.Class1.ProvideComponentProperties()
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProvideComponentProperties(IDTSManagedComponentWrapper100 wrapper)
------------------------------
Method not found: 'Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSComponentMetaData100 Microsoft.SqlServer.Dts.Pipeline.PipelineComponent.get_ComponentMetaData()'. (Microsoft.SqlServer.DTSPipelineWrap)
------------------------------
BUTTONS:
OK
------------------------------
答案 0 :(得分:0)
我遇到了同样的问题,这对我有用:
"请打开您的csproj文件,删除True元素或在Microsoft.SQLServer.DTSPipelineWrap.dll的引用中将值设置为False,然后重建您的项目。"
虽然这是针对SSIS 2012而不是SSIS 2015的目标组件的解决方案,但这不是我的情况,但它有效。
来源: Social MSDN