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>'."
![[O-Image]](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000012655/00N39000003LL24-0EM39000000wdiN.png)
![[O-Image]](https://webapps-cdn.esri.com/CDN/support-site/technical-articles-images/000012655/00N39000003LL24-0EM39000000wdiM.png)
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
Start chatting now