MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

DllNotFoundException: Unable to load DLL 'Azure-AI-Vision-Native': The specified module could not be found. (Exception from HRESULT: 0x8007007E #117299

Closed digiofficerobin closed 10 months ago

digiofficerobin commented 11 months ago

Hi,

I am following the tutorial for Azure AI Vision (https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/tutorials/storage-lab-tutorial). After adding the code for the "Add metadata generation code" the program gives the following exception:

DllNotFoundException: Unable to load DLL 'Azure-AI-Vision-Native': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

TypeInitializationException: The type initializer for 'Azure.AI.Vision.Common.Diagnostics.Logging.VisionEventSource' threw an exception.

image

I don't have a clue how to fix this issue.

Can you guide me to a solution?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Naveenommi-MSFT commented 11 months ago

@digiofficerobin Thanks for your feedback! We will investigate and update as appropriate.

RamanathanChinnappan-MSFT commented 11 months ago

@digiofficerobin It seems like the required DLL file 'Azure-AI-Vision-Native' is missing. This DLL file is required by the Azure.AI.Vision.Common package.

To resolve this issue, you can try the following steps:

  1. Make sure that you have installed the Azure.AI.Vision.Common package. You can install it using the following command in the Package Manager Console:

    Install-Package Azure.AI.Vision.Common -Version 4.0.0-preview.2
  2. Check if the 'Azure-AI-Vision-Native' DLL file is present in the output directory of your project. If it is not present, you can try adding it manually to the output directory. You can find the DLL file in the 'runtimes' folder of the Azure.AI.Vision.Common package.

  3. If the above steps do not work, you can try reinstalling the Azure.AI.Vision.Common package and rebuilding your project.

If none of these steps work, please let me know and For an issue like this, I'd recommend you create a support ticket since the support team will be able to respond much more quickly and have a conversation with you to figure out what could be going on.

digiofficerobin commented 11 months ago

@RamanathanChinnappan-MSFT, the Azure-AI-Vision-Native DLL is not present in the output directory. I have tried to install the Azure.AI.Vision.Common -Version 4.0.0-preview.2 package, but this is not available (see screenshot).

image

RamanathanChinnappan-MSFT commented 11 months ago

@digiofficerobin Thanks for your confirmation

@PatrickFarley

could you please review this and update as appropriate.

RamanathanChinnappan-MSFT commented 11 months ago

@digiofficerobin I've delegated this to @PatrickFarley, a content author, to review and share their valuable insights.

digiofficerobin commented 11 months ago

@RamanathanChinnappan-MSFT and @PatrickFarley Thanks! I want to showcase the idea of the tutorial integrated into our product, which is built in .NET 4.8 framework. Please let me know if there is a solution.

PatrickFarley commented 10 months ago

I'm not sure how I can help here. I know that the Common package should come bundled with the Azure.AI.Vision.ImageAnalysis package. @RamanathanChinnappan-MSFT , this appears to be a product debugging issues, so I'll unassign myself.

RamanathanChinnappan-MSFT commented 10 months ago

@digiofficerobin For an issue like this, I'd recommend you create a support ticket since the support team will be able to respond much more quickly and have a conversation with you to figure out what could be going on.