Your app has entered a break state, but no code is currently executing that is supported by the selected debug engine (e.g. only native runtime code is executing) – Visual Studio Exception

Sathish Nadarajan
 
Solution Architect
March 1, 2018
 
Rate this article
 
Views
25198

While creating a Console Application for the Cognitive Services, faced a strange exception as shown in the title.

“Your app has entered a break state, but no code is currently executing that is supported by the selected debug engine (e.g. only native runtime code is executing)”

The steps followed are,

1. Open the Visual Studio. Create a New project – Console App.

clip_image002

2. Add the NuGet Package for Azure Speech Recognition.

clip_image004

clip_image006

clip_image008

3. Rebuild the Application.

4. Execute the Application and we will see the below exception.

clip_image010

5. We will not get a clear information on this Break Mode screen. Hence, look at the Output window.

clip_image012

6. It clearly says the problem of the statement.

clip_image014

7. Though the assembly is available, the application is not able to find the assembly.

8. To fix this, change the application property build settings.

clip_image016

9. From “Any CPU”, change to x64.

clip_image018

10. Now, execute, it will get executed.

Happy Coding,

Sathish Nadarajan.

Author Info

Sathish Nadarajan
 
Solution Architect
 
Rate this article
 
Sathish is a Microsoft MVP for SharePoint (Office Servers and Services) having 15+ years of experience in Microsoft Technologies. He holds a Masters Degree in Computer Aided Design and Business ...read more
 

Leave a comment