BEX: Buffer Overflow Exception. Issues with BizTalk Repair

ISSUE DEFINITION:

BizTalk Repair fails with the following error:

Problem signature:

  Problem Event Name: BEX

  Application Name: Setup.exe_Microsoft (R) BizTalk (R) Server 2013 R2

  Application Version: 3.11.158.0

  Application Timestamp: 538ae9f0

  Fault Module Name: unknown

  Fault Module Version: 0.0.0.0

  Fault Module Timestamp: 00000000

  Exception Offset: 0261f6b8

  Exception Code: c0000005

  Exception Data: 00000008

  OS Version: 6.2.9200.2.0.0.272.7

  Locale ID: 1033

CAUSE:

Cause: Unknown.

Problem Event Name: BEX

BEX refers to Buffer Overflow Exception.

The following steps may be used to fix the BEX Exception. However, this fix has not been tested and validated. The below fix is not recommended for PROD environments.

SOLUTION:

Ensure that there is enough disk space available.

This could be due to certain Dll’s getting blocked by antivirus from getting installed/repaired.

  1. Disable firewall and Disable antivirus from the server
  2. Reboot the server

        Now,  retry the BizTalk repair

In some cases DEP can prevent some exe from executing. And then you can get a BEX error.

Data Execution Prevention (DEP) is a security feature that can help prevent damage to your computer from viruses and other security threats. Harmful programs can try to attack Windows by attempting to run (also known as execute) code from system memory locations reserved for Windows and other authorized programs

  1. Right click your computer icon go to properties and advanced system settings and then under the advanced tab go to system properties.
  2. Once there on the advanced tab under performance, click settings then go to the data execution prevention tab
  3. Choose “Turn on DEP for all programs” and add the BizTalk setup.exe installation program to the exception list.
  4. Reboot the server and try the repair.

References:

https://www.microsoft.com/en-US/download/details.aspx?id=53314

answers.microsoft.com/en-us/windows/forum/windows_other-windows_programs/problem-event-name-bex-error-message/cf5baf73-0877-4070-abfb-a2c3a17a9e10

https://social.technet.microsoft.com/Forums/windows/en-US/48f17381-531d-4ae5-8ea5-c289ec09857f/bex-error-how-i-fix-it?forum=w7itprogeneral

https://social.msdn.microsoft.com/Forums/windows/en-US/36302cc5-5a53-4cec-a18a-bdcc8659b6cd/application-has-stopped-working-problem-event-name-bex-error-message-in-windows-7-64-bit-?forum=vcgeneral

http://www.addictivetips.com/windows-tips/what-is-data-execution-prevention-dep-and-how-to-disable-it-in-windows-vista/

http://www.sevenforums.com/gaming/178746-bex-error.html