Object reference not set to an instance of an object.

Home Page Forums BizTalk 2004 – BizTalk 2010 Object reference not set to an instance of an object.

Viewing 1 reply thread
  • Author
    Posts
    • #13588

      Hi ,

      I ran into this error when receiving a message.
      The other party in this case is using a self sign cert.
      The message is also base64-encoded and digitally signed.

      The service content seems to be ok because was validated individually.
      Really appreciate your advice and help. Thanks.

      The error that I got from biztalk is as follows:

      System.NullReferenceException: Object reference not set to an instance of an object.
      at CISCOVLN_VA._3B18R11.Validate(XmlDocument preambleToValidate, XmlDocument serviceHeaderToValidate, XmlDocument deliveryHeaderToValidate, XmlDocument serviceContentToValidate, RNIFException RNIFerror)
      at Microsoft.Solutions.BTARN.ConfigurationManager.ValidateRNIFMessagePartsInvoker.InvokeValidate(XmlDocument inPreamble, XmlDocument inServiceHeader, XmlDocument inDeliveryHeader, XmlDocument inServiceContent, RNIFException rnifExceptionInfo, String assemblyName, String className)
      at Microsoft.Solutions.BTARN.ConfigurationManager.RuntimeConfig.IsRNIFMessageExternallyValidated(XLANGMessage inRNIFMessage, RNIFException rnifExceptionInfo)
      at Microsoft.Solutions.BTARN.ConfigurationManager.RuntimeConfigV201.IsActionMessageValid(XLANGMessage inRNIFMessage, RNIFException& exceptionInfo)
      at Microsoft.Solutions.BTARN.PublicResponder.PublicResponderProcess.segment2(StopConditions stopOn)
      at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
      System.NullReferenceException
      Scoped@
      PublicResponderProcess.??__scope0
      PublicResponderProcess.PublicResponderProcess
      823b2838-1b77-4e6d-b502-9cc687220f99

    • #13589

      Good day Neal,

      🙂
      You’re right. It was due to error in the c# code.
      So it was solved now.

      Thanks for your advice Neal.

      • #13590

        Presumably CISCOVLN_VA._3B18R11.Validate is your own .DOT code?
        In Biztalk, after you declare a variable (in Orchestration Viewer), you still must instantiate it (if the class is not static) in an expression shape before you use it the first time.

        CISCOVLN_VA = new yourClassName();

        Or the error could be coming from the C# code – hopefully it has been unit tested first!

        Neal Walters
        http://Biztalk-Training.com

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