我找到了一些相关的答案,但没有解释,如果我真的需要在https://azure.microsoft.com/en-us/documentation/articles/media-services-copying-existing-blob/ 从在Azure媒体服务团队例如,所有的代码,我只是想上传的blob Azure的媒体服务的文件。就像这样:蔚蓝的媒体服务
var uploadFilePath = blobUrl;
var uploadAsset = _context.Assets.Create(Path.GetFileNameWithoutExtension(uploadFilePath), AssetCreationOptions.None);
var assetFile = uploadAsset.AssetFiles.Create(Path.GetFileName(uploadFilePath));
assetFile.Upload(uploadFilePath);
但是我却越来越
AggregateException是由用户代码,“型 ‘System.AggregateException’的例外未处理的出现在mscorlib.dll,但没有 处理中用户代码”
堆栈跟踪
在System.Threading.Tasks.Task.ThrowIfExceptional(布尔 includeTaskCanceledExceptions)处 Microsoft.WindowsAzure.MediaServices.Client.AssetFileData.Upload System.Threading.Tasks.Task.Wait(的Int32 millisecondsTimeout, 的CancellationToken的CancellationToken)(字符串 路径)在 ç UploadMediaServicesExample.Services.MediaHandler.AddFileToMediaServices(字符串 blobUrl):\源\ UploadMediaServicesExample \ UploadMediaServicesExample \服务\ MediaHandler.cs:线 51在 UploadMediaServicesExample.Controllers.HomeController.UploadVideo(IEnumerable的
1 file) in C:\Source\UploadMediaServicesExample\UploadMediaServicesExample\Controllers\HomeController.cs:line 24 at lambda_method(Closure , ControllerBase , Object[]) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary
2参数)在 System.Web.Mvc.ControllerActionInvoker.InvokeAct ionMethod(ControllerContext controllerContext,ActionDescriptor actionDescriptor,IDictionary的2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult
2.CallEndDelegate(IAsyncResult的 asyncResult)在 System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() 在 System.Web.Mvc.Async.AsyncControllerActionInvoker .EndInvokeActionMethod(IAsyncResult的 asyncResult)在 System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.b__3d() 在 System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters。 <> c__DisplayClass46.b__3f()
附加信息:发生一个或多个错误。
这里是块乌里这是公开的。“https://mulimo.blob.core.windows.net/temporary-files/clip.mp4”