SDK doesn't work in .NET 4.6.1
See original GitHub issueDescribe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Create a project with .NET core
- Change the target framework to net461
- Add configuration manager for x64 or x32 and target that platform
- Installed the VC++ distributables (no effect)
- 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:
- Created 5 years ago
- Comments:24 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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!!!)