Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Object reference not set to an instance of an object.
- This topic has 2 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
May 15, 2006 at 9:47 AM #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 -
May 16, 2006 at 8:05 AM #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.
-
May 15, 2006 at 2:57 PM #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
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.