question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SDK doesn't work in .NET 4.6.1

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Create a project with .NET core
  2. Change the target framework to net461
  3. Add configuration manager for x64 or x32 and target that platform
  4. Installed the VC++ distributables (no effect)
  5. Try to call a sample code that uses SDK that used to work with .NET core

Expected behavior It should work like when .NET core was target platform

Version of the Cognitive Services Speech SDK 1.3.1

Platform, Operating System, and Programming Language

  • OS: Windows 10
  • Hardware - x64
  • Programming language: C#

Additional context

System.DllNotFoundException: Unable to load DLL 'Microsoft.CognitiveServices.Speech.core.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Microsoft.CognitiveServices.Speech.Internal.SpeechConfig.speech_config_from_subscription(IntPtr& config, String subscriptionKey, String region)
   at Microsoft.CognitiveServices.Speech.SpeechConfig.FromSubscription(String subscriptionKey, String region)
   at SpeechCognitiveServices.Program.<CallCognitiveServices>d__3.MoveNext()

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jhakulincommented, Jun 5, 2019

Discussed with @anbhar and the issue there was solved by manually adding Microsoft.CognitiveServices.Speech.core.dll to the application project.

Based on this thread, there is several reasons why the issue might happen. We will collect information from here and improve our sample projects/documentation on this in coming releases. Thanks for all feedback

2reactions
simonemarracommented, May 23, 2019

Actually we found the source of our problem: visual studio d++ redistributable!!!

https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

The PC we are using as a deploy machine for speech recognition software didn’t have any vc_redist installed. In fact any solution using speech recognition libs (we tested .netcore console app, wpf .net framework) were not able to run correctly. After installing the vc_redist_x64.exe file all the samples where running correctly.

I think you should update the documentation specifying that vc_redist is a MUST HAVE lib to correctly execute the code on any machine running Windows. It may be a obvious, but if you are developing some apps and deploying to third-party machines a reminder could be really useful (we wasted about two working days of development for this missing!!!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sentry SDK with Asp.Net 4.6.1 Not working
I have an Asp.Net app, using .net 4.6.1 version. When I installed Sentry nuget and used Sentry SDK, nothing working, no events are...
Read more >
NET Framework 4.6.1 Developer Pack
1 software development kit (SDK). The associated language packs for Developer Pack contain the language-specific resources for the .NET ...
Read more >
NET Framework 4.6.1 Developer Pack language ...
The Microsoft .NET Framework 4.6.1 Developer Pack installs the .NET Framework 4.6.1, the .NET 4.6.1 Targeting Pack and the .NET 4.6.1 SDK.
Read more >
Cannot load project with target .Net Framework 4.6.2
I am using a Windows 10 with Visual Studio 2017. I have .Net Framework 4.6.1 and 4.7.2 installed but not 4.6.2. I tried...
Read more >
can dotnet framework 4.6.1 run on Linux dotnet-sdk?
I have installed dotnet sdk when i run dotnet run inside the project ... you may find that the framework code calls stuff...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found