Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new Asset and get Media Processor #198

Open
mobius127 opened this issue Feb 28, 2018 · 0 comments
Open

Create new Asset and get Media Processor #198

mobius127 opened this issue Feb 28, 2018 · 0 comments

Comments

@mobius127
Copy link

Hi guys,

I've installed "windowsazure.mediaservices" and "windowsazure.mediaservices.extensions" 4.1.0.1 package and there are some errors when I'm trying to create new asset for the previous step of encoding video and an other error when I'm trying to get the latest media processor:

Creating new Asset:

[Header]\r\n10:57:49.738 [12] ERROR AnalysisDepartment.AzureMediaServices.Services.MediaService - [ERROR] with Message: at System.Data.Services.Client.EntityTracker.InternalAttachEntityDescriptor(EntityDescriptor entityDescriptorFromMaterializer, Boolean failIfDuplicated)
at System.Data.Services.Client.AtomMaterializerLog.ApplyToContext()
at System.Data.Services.Client.Materialization.ODataEntityMaterializer.ApplyLogToContext()
at System.Data.Services.Client.MaterializeAtom.MoveNextInternal()
at System.Data.Services.Client.MaterializeAtom.MoveNext()
at System.Linq.Enumerable.d__941.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source)
at System.Data.Services.Client.DataServiceQueryProvider.ReturnSingleton[TElement](Expression expression)
at System.Data.Services.Client.DataServiceQueryProvider.Execute[TResult](Expression expression)
at Microsoft.WindowsAzure.MediaServices.Client.MediaQueryProvider1.<>c__DisplayClass5_01.b__0()
at Microsoft.WindowsAzure.MediaServices.Client.TransientFaultHandling.MediaRetryPolicy.ExecuteAction[TResult](Func1 func) at Microsoft.WindowsAzure.MediaServices.Client.MediaQueryProvider1.Execute[TResult](Expression expression)
at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source)
at Microsoft.WindowsAzure.MediaServices.Client.CloudMediaContext.get_DefaultStorageAccount()
at Microsoft.WindowsAzure.MediaServices.Client.AssetCollection.Create(String assetName, AssetCreationOptions options)
at AnalysisDepartment.AzureMediaServices.Services.MediaService.CopyFileToMediaService(VideoModel video, String fileName) in C:\ProyectosVSO[ProjectName].AnalysisDepartmentWeb\AnalysisDepartmentWeb.AzureMediaServices\Services\Impl\MediaService.cs:line 147

Getting latest media processor:

[Header]\r\n12:43:51.779 [16] ERROR AnalysisDepartment.AzureMediaServices.Services.MediaService - [ERROR] with Message: at System.Data.Services.Client.EntityTracker.InternalAttachEntityDescriptor(EntityDescriptor entityDescriptorFromMaterializer, Boolean failIfDuplicated)
at System.Data.Services.Client.AtomMaterializerLog.ApplyToContext()
at System.Data.Services.Client.Materialization.ODataEntityMaterializer.ApplyLogToContext()
at System.Data.Services.Client.MaterializeAtom.MoveNextInternal()
at System.Data.Services.Client.MaterializeAtom.MoveNext()
at System.Linq.Enumerable.d__941.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at AnalysisDepartment.AzureMediaServices.Services.MediaService.GetLatestMediaProcessorByName(String mediaProcessorName) in C:\ProyectosVSO[ProjectName].AnalysisDepartmentWeb\AnalysisDepartmentWeb.AzureMediaServices\Services\Impl\MediaService.cs:line 423
at AnalysisDepartment.AzureMediaServices.Services.MediaService.EncodeAndPublishFile(VideoModel video, String assetId) in C:\ProyectosVSO[ProjectName].AnalysisDepartmentWeb\AnalysisDepartmentWeb.AzureMediaServices\Services\Impl\MediaService.cs:line 229

My code as it follows:

For New Asset:
image

Getting latest media processor:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant