Error in custom pipeline component

Home Page Forums BizTalk 2004 – BizTalk 2010 Error in custom pipeline component

Viewing 1 reply thread
  • Author
    Posts
    • #22355

      Hi I have developed a custom pipeline component for encryption and when I tried drag and drop from the pipeline toolbox to the encode stage its giving me an error.

      ‘Pipeline component load() method failed on IpersistPropertybag implementation’

      my load method is

       

       

       

       

       

       

      public

       

      void Load(IPropertyBag propertyBag, int errorLog)

      {

       

       

      object strGnuPGEXE;

       

       

      object strArguments;

       

       

      object strTimeout;

      propertyBag.Read(“GnuPGEXE”, out strGnuPGEXE, 1);

      propertyBag.Read(

      “Arguments”, out strArguments, 2);

      propertyBag.Read(

      “Timeout”, out strTimeout, 3);

      }

      can anyone please help to resolve this issue.

      Thanks

    • #22358

      You need a try/catch around the propertyBag.Read, which throws an exception if the property does not exist. This is the expected behaviour when using the component at design time for the first time.

      try
      {
             object value;
             propertyBag.Read(“GnuPGEXE”, out value, 0);
             if (value != null) strGnuPGEXE = (string)value;
      }
      catch (Exception)
      {
             strGnuPGEXE = null;
      }

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.