I have a Web application that I made in Visual Studio 2022, using .NET Core 8.0 and Angular 8, and the Azure Cognitive Services Speech (version 1.41.1) installed through NuGet. The application works fine in the local environment, but when I publish it in the development computer, or a target computer, the following error message appears:
An unhandled exception occurred while processing the request.DllNotFoundException: Unable to load DLL 'Microsoft.CognitiveServices.Speech.core.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)Microsoft.CognitiveServices.Speech.Internal.SpeechConfig.speech_config_from_subscription(out IntPtr config, string subscriptionKey, string region)
Stack Query Cookies Headers Routing
DllNotFoundException: Unable to load DLL 'Microsoft.CognitiveServices.Speech.core.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)Microsoft.CognitiveServices.Speech.Internal.SpeechConfig.speech_config_from_subscription(out IntPtr config, string subscriptionKey, string region)Microsoft.CognitiveServices.Speech.SpeechConfig.FromSubscription(string subscriptionKey, string region)CognitiveServicesService.SpeechToTextAsync() in CognitiveServicesService.csapi.Controllers.CognitiveServicesController.GetSpeechToText() in CognitiveServicesController.cs
Both the development computer and target computer (Windows 10) are using the same CPU architecture (64-bit). The target architecture is set to 'Any CPU'. My Target Computer has Microsoft Visual C++ 2017 Redistributable (x64) and as well as (x86) version 14.14.26405.
I am not sure what I am missing, here.
Thanks in advance.