Azure-Samples / Cognitive-Services-Voice-Assistant

Welcome to the Microsoft Voice Assistant samples repository! Here you will find samples to help you get started building client application for your bot or Custom Command service. You will also be able to easily deploy a working Custom Command based Voice Assistant to your own Azure subscription
MIT License
102 stars 99 forks source link

Getting error after creating the msi for this project #509

Open SaikatRoyChowdhury opened 4 years ago

SaikatRoyChowdhury commented 4 years ago

Getting error while running the installer. Microsoft.CognitiveServices.Speech.csharp : Unable to load DLL 'Microsoft.CognitiveServices.Speech.core.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) Attached the msi.. AskAdamSetUp.zip

dargilco commented 4 years ago

@SaikatRoyChowdhury thanks for posting this comment. I'll do my best to help. Can you please provide specific details on what you are doing? For example, you did not mention which application this is. Did you build the MSI yourself? how? or did you get it from somewhere? Darren

SaikatRoyChowdhury commented 4 years ago

@dargilco This code is the code that is uploaded here - https://github.com/Azure-Samples/Cognitive-Services-Voice-Assistant/tree/master/clients/csharp-wpf I just customized the name and icon and created a set up project to test the deployment. No code has been changed. Let me know if you need any further clarification.

SaikatRoyChowdhury commented 4 years ago

@dargilco The code is giving correct output without issue if i run it in local but after creating the msi this problem is coming on Install --> run

dargilco commented 4 years ago

Thanks for the additional information @SaikatRoyChowdhury. We have not tested the installer. The error you are getting indicates the installer does not know there is a dependency on the Speech SDK DLLs. I don't have time to look at it right now... is this something you can investigate? I would think since the project itself pulls in the Speech SDK NuGet, the installer will recognize this dependency. Or does the installer have a separate place where you list dependent DLLs? Darren

SaikatRoyChowdhury commented 4 years ago

@dargilco Thanks for your input. I observed that Microsoft.CognitiveServices.Speech.core.dll is present under nativeasset folder but since only speech sdk nuget package is added into the project the set up project is taking only that package.

mentorfloat commented 3 years ago

@qfweiwei @dargilco Any update since? We packaged using MSIX via Store and occasionally on some PCs we get Unable to load DLL 'Microsoft.CognitiveServices.Speech.core.dll' or one of its dependencies: The specified module could not be found.

It is fine on most.

Apparently there is a workaround described here: https://github.com/Azure-Samples/Cognitive-Services-Voice-Assistant/commit/34c9058d424123045003ae9420b7986039e375b2 from a closed issue https://github.com/Azure-Samples/Cognitive-Services-Voice-Assistant/issues/150

Is there a more permanent solution?