How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

MapInfo Pro 32 bit ™


MapBasic application MBX causes MapInfo Pro error to be occur.

Error 1: 
Unhandled exception (AppDomainUnloadedException): The application domain in which the thread was running has been unloaded. 

Error 2:
User-added image

System Error Internal Error: 34531

Error 3:

User-added image

System Error Internal Error: 34631

Error referenced in Event Viewer for Office 2016 users:

Activation context generation failed for "C:\Program Files (x86)\Microsoft Office\Office16\lync.exe.Manifest" .Error in manifest or policy file ""C:\Program Files (x86)\Microsoft Office\Office16\UccApi.DLL" on line1. Component identify found in manifest does not match the identity of the component requested. Reference is UccApi.processorArchitecture="AMD64", type="win32",version="".Definition is UccApi,processorArchitecture="x86",type="win32",version="". Please use sxstrace.exe for detailed diagnosis.

Event viewer screenshot:
User-added image


Microsoft Visual C++ Libraries 2010, 2012, 2013 may need to be repaired.

Windows Updates May need to be Initially installed and may require reboot.


UPDATED: July 31, 2017
Resolution on how to fix this issue:
  • Make sure all Windows updates are current. 
  • Windows may need a reboot to initialize Windows updates and for Windows to be configured automatically.
  • Repair All Microsoft Visual C++ Libraries 2010, 2012, 2013. 
  • Make sure that Microsoft Access can open without error.
  • Make sure MapInfo Pro 32 application is fully patched
  • Test MapInfo Pro and customer MBX after the previous attempts above have been attempted.