FIX: SAPBinding constructor fails with NullReferenceException

After you install Microsoft BizTalk Server 2013 R2 CU2, code that invokes the SAPBinding(String configurationName) constructor fails as follows:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Adapters.SAP.SAPBinding.get_ConnectorType()
at Microsoft.Adapters.SAP.SAPBinding..ctor(String configurationName) at ConsoleApplication.Program.Main(String[] args) in c:\Projects\ConsoleApplication\ConsoleApplication\Program.cs:line 25
Note The calls to default SAPBinding() constructor work fine.
The issue occurs because there is code defect in cumulative update package 2 for BizTalk Server 2013 R2.

Cumulative update information

The fix that resolves this issue is included in the following cumulative update for BizTalk Server:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Learn about the service pack and cumulative update list for BizTalk Server.

Learn about BizTalk Server hotfixes and cumulative update support.

Third-party information disclaimer

The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 3162562 - Last Review: 10/10/2016 21:42:00 - Revision: 3.0

Microsoft BizTalk Server 2013 R2 Branch, Microsoft BizTalk Server 2013 R2 Developer, Microsoft BizTalk Server 2013 R2 Enterprise, Microsoft BizTalk Server 2013 R2 Standard, Microsoft BizTalk Adapter Pack 2013

  • kbqfe kbsurveynew kbbts kbbtsadapters kbadapters KB3162562