C# 自定义.net azure数据工厂活动

C# 自定义.net azure数据工厂活动,c#,.net,azure,azure-data-factory,C#,.net,Azure,Azure Data Factory,当我尝试在Azure DataFactory中使用CustomDotNetActivity实现HttpDataDownloaderSample时,遇到此错误: Unknown error in module: System.InvalidOperationException: The type DataDownloaderActivityNS.DataDownloaderActivity in the DataDownloaderActivity assembly does not exist

当我尝试在
Azure DataFactory
中使用
CustomDotNetActivity
实现
HttpDataDownloaderSample
时,遇到此错误:

Unknown error in module:
System.InvalidOperationException: The type
DataDownloaderActivityNS.DataDownloaderActivity in the
DataDownloaderActivity assembly does not exist or doesn't implement the
type Microsoft.DataFactories.Runtime.IDotNetActivity properly. Please
check your configuration. Names are case sensitive on each single
character.
at
Microsoft.DataPipeline.Compute.HDInsightJobExecution.JobWrapper.LoadToAppDomain(AssemblyName
assemblyFullName, String typeName) in
f:\_Bld\12751\6742\Sources\Product\Common\Compute\src\HDIComputeDelegatorJob\JobWrapper.cs:line
130 at Microsoft.DataPipeline.Compute.HDInsightJobExecution.JobWrapper.RunJob()
in
f:\_Bld\12751\6742\Sources\Product\Common\Compute\src\HDIComputeDelegatorJob\JobWrapper.cs:line
83
at
Microsoft.DataPipeline.Compute.HDInsightJobExecution.Launcher.Main(String[]
args) in
f:\_Bld\12751\6742\Sources\Product\Common\Compute\src\HDIComputeDelegatorJob\Launcher.cs:line
78.

以前有人经历过吗

我不知道您正在使用的示例,但我在自定义活动中遇到了这个确切的错误。在无果而终地追踪“不实现类型”错误之后,结果证明这是由于我的管道上的输入和输出被设置为相同的数据集。这会产生递归数据集错误。但是,您不会在上面的跟踪中看到此错误

我最终发现重新创建的错误是在Powershell中重置切片以重新运行它时。这就产生了一个更有意义的错误。要执行此操作,请打开Powershell并使用登录AzurerAccount登录,然后为链接到管道的每个数据集发出
Set-AzureRmDataFactorySliceStatus

这可能有助于诊断。IDotNetActivity错误对我来说完全是一个骗局。修复数据集解决了这个问题


使用Powershell重置片的文档:

您尝试运行的“Execute”方法的方法签名是什么样子的?它看起来是这样的“Execute(IEnumerable LinkedService、IEnumerable Dataset、Activity Activity、IActivityLogger)”为了验证您是否已获取压缩的源代码并将其上载到azure blob存储,并将其链接到activity json定义中?我完成了示例中的所有操作。我将所有dll文件放在根文件夹中,对其进行压缩并将其上载到azure blob存储中,并将其链接到活动管道定义中。我已经用尽了所有的在线资源,还多次尝试重新创建整个过程,但我仍然得到相同的错误。