Ah just what I was looking for, someone to answer any question!
Originally Posted by Chubs' Harambe
I am trying to use the Azure MediaService API along with the Azure Storage API in an API Service hosted in Azure.
The user sends the video stream to the service as an HttpPost, the service saves the video as a blob in my Storage account, the media service encodes the video and when the link to the video is ready it is returned to the user.
But when I am trying to create an Asset a System.NotSupportedException is thrown with the message:
I am using the following versions of the required dependencies:
Exception thrown: 'System.NotSupportedException' in Microsoft.Data.Services.Client.dll Exception thrown: 'System.NotSupportedException' in mscorlib.dll iisexpress.exe Error: 0 : Exception=System.NotSupportedException: This target framework does not enable you to directly enumerate over a data service query. This is because enumeration automatically sends a synchronous request to the data service. Because this framework only supports asynchronous operations, you must instead call the BeginExecute and EndExecute methods to obtain a query result that supports enumeration.
Here is my code:
Microsoft.Data.Services.Client - 188.8.131.52
Microsoft.WindowsAzure.MediaServices.Client - 184.108.40.206
Microsoft.WindowsAzure.Storage - 220.127.116.11
The data.Data contains the byte of the video. The exception is thrown when CreateAsync is called. I tried _context.Assets.Create with no luck.
using (MemoryStream Ms = new MemoryStream(data.Data))
_context = new CloudMediaContext("accountName", "accountKey");
asset = await _context.Assets.CreateAsync("blobContainerName",
Thanks a lot for the help beforehand.