1

I am creating a class library. On successful build of that class library I had placed that DLL to the pipeline component folder of BizTalk Server and added that DLL to the GAC folder.

Now I am trying to refer that as custom pipeline component into another project where I am creating the custom pipeline. But when I try to add that DLL it throws an exception

You have selected and invalid pipeline component assembly. Please check security settings for the assembly if you are loading it from an UNC path

I had already some of the solutions which are available related to this exception like

  • First, check that your pipeline component class is public.
  • Also, make sure any assemblies you reference from the custom pipeline component are in the GAC or Pipeline Components folder (if that’s where you drop your custom pipeline component assembly).
  • Check for missing dependencies, they all have to be put on GAC or Pipeline Components folder

But still unable to resolve the issue.

2
  • 1
    Is your component a pipeline component or just a helper class? The question is not very clear on this, so could you please elaborate? Oct 14, 2016 at 10:15
  • It is a helper class.But have properties related to that Pipeline component.It contains inheritance to the IPropertyBag and related stuff
    – Developer
    Oct 17, 2016 at 6:26

2 Answers 2

2

First, do not put custom Pipeline Components in the %Pipeline Components% folder. Details on that here: BizTalk Server: Deploying Custom Pipeline Components in BizTalk Server 2006 and Higher

Next, you have to implement at least 2 but up to 5(?) Interfaces for a component to be recognized as a Pipeline Component. The best way to ensure this is to use the excellent Pipeline Component Wizard available at CodePlex: BizTalk Server Pipeline Component Wizard

2013 R2 version here: http://btsplcw.codeplex.com/workitem/21354

3
  • Not putting it in the Pipeline folder and only GACing it is still a hotly debated topic ;-) My recommendation, in a Dev environment in the folder only, in other environments GAC them as part of your automated deployment.
    – Dijkgraaf
    Oct 15, 2016 at 19:41
  • 1
    Thank you guys for the guidance but i want one more thing to be clarified is that is there anything related to that Resource file.Because what i observed is that i created two projects. In one project i have resource file but in another project i don't have.So the project which have resource file is working fine.That pipeline component is created properly and working fine but another one is not working.
    – Developer
    Oct 17, 2016 at 6:31
  • Yes, that is a very common thing to forget about, I have. The path to the resource file has to match the executing Assembly. If you named the other different, then moved the files, and did not update the Resources path, it will fail for sure. Most of the time, you can just copy from the working one, keeping only the Resource file name itself.
    – DTRT
    Oct 17, 2016 at 13:27
0

I had the same issue today. I copied an existing Pipeline from another PipelineComponents C# library. For whatever reason, the "Build Action" was set to none, instead of "Compile". So even though the project built and created a .DLL, it wasn't including the C# code that I had modified.

Then I also had to close and re-open Visual Studio, because the previous .DLL as still cached.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.