Error on creating Cloud Media Context

Mohammad Modrek 1 Reputation point
2020-06-24T09:53:08.693+00:00

Hi, I’m new in Azure cloud services.

I want to create analyze video file using Azure Media Service .

I fallow this Article https://learn.microsoft.com/en-us/azure/cognitive-services/content-moderator/video-moderation-api step by step .

In this project I need some account and key. I create these accounts and copy and paste the accounts and keys and … but it doesn’t work. I guess I'm wrong somewhere in getting right account and …I need blew information and got these data in this way:
10605-0.png

Storage Name , Storage Key : All resources / Click on Storage account that I created before / Access keys/ and grab dataas like as here :
Storage Container Name : for this I click on the storage Explorer and copy the name blew the BLOB CONTAINER :

10632-01.png
Azure AD Tenant Name: I set it to "microsoft.onmicrosoft.com"
Client Id and REST API Endpoint : All resources / Click on Media Service that I created before / API Access/ and grab data as like as here
10641-02.png

Is it current or not?

When I rum the application on this line :

_context.Assets.CreateFromFile(INPUT_FILE, AssetCreationOptions.None);

I got this error :

FileNotFoundException: Could not load file or assembly 'System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

Thanks in Advance

Azure Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
257 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Deutscher (MSFT) 2,121 Reputation points Microsoft Employee
    2020-06-24T17:03:01.787+00:00

    I would recommend that you walk through this more recent tutorial for Analyze a video file and see if you have more success.
    https://learn.microsoft.com/en-us/azure/media-services/latest/analyze-videos-tutorial-with-api

    I'm not clear on which version of the .NET SDK you picked up and if that is current or not. Can you add details on which SDK version you are using?

    Make sure you are able to run these samples first to get started - https://github.com/Azure-Samples/media-services-v3-dotnet-tutorials/tree/master/AMSV3Tutorials

    No comments