ERROR
When debugging in Visual Studio 2013 or Visual Studio 2015 with ArcGIS Engine applications and ArcGIS for Desktop add-ins that reference ESRI.ARCGIS.ADF.Local.dll, The following error can occur:
Error:
"Managed Debugging Assistant 'PInvokeStackImbalance' has detected a problem in
'<Path to add-in or application dll/exe>'."
The reference to ESRI.ARCGIS.ADF.Local.dll in ArcGIS Engine applications or ArcGIS Desktop add-ins can throw the PInvokeStackImbalance message.
Article ID: 000012655
Get help from ArcGIS experts
Download the Esri Support App
You can also download the app to access the chatbot anytime! Download it now.