microsoft-graph-comms-samples icon indicating copy to clipboard operation
microsoft-graph-comms-samples copied to clipboard

Media platform failed to initialize

Open DynTechieBibin opened this issue 1 year ago • 4 comments

I'm working on application-hosted media bot and getting the following exception while testing locally on Windows 11: Unable to load DLL 'NativeMedia' or one of its dependencies.

This exception occurs from the line: builder.SetMediaPlatformSettings(mediaPlatformSettings);

var mediaPlatformSettings = new MediaPlatformSettings() { MediaPlatformInstanceSettings = new MediaPlatformInstanceSettings() { CertificateThumbprint = sthumbprint, InstanceInternalPort = internalPort, InstancePublicIPAddress = IPAddress.Any, InstancePublicPort = publicPort, ServiceFqdn = config.ServiceFqdn }, ApplicationId = config.APP_ID, }; project_file.txt

mediabot

DynTechieBibin avatar Oct 28 '24 17:10 DynTechieBibin

Install package Microsoft.Skype.Bots.Media. Even though it is within Microsoft.Graph.Communications.Calls.Media package, it seems the whole skype bot dependent dlls are not there.

DynTechieBibin avatar Nov 10 '24 20:11 DynTechieBibin

Congrats to finding your own solution!

I guess you could also close the issue then :)

InDieTasten avatar Nov 13 '24 07:11 InDieTasten

Hi guys, i try to run echobot locally, but have this issue, do u have any idea for this

Echo Bot Service is starting... fail: EchoBot.EchoBotWorker[0] Media platform failed to initialize Status Code: 0 Microsoft.Graph.Communications.Core.Exceptions.ServiceException: Media platform failed to initialize ---> System.ArgumentException: CertificateThumbprint (Parameter 'Could not find a matching certificate for thumbprint 9E95EBE782871401573B547F603FCD2D797FFDD6') at Microsoft.Skype.Internal.Bots.Media.InternalMediaPlatform.Initialize(MediaPlatformSettings settings, IConfigurationManager configurationManager, Boolean isTest) at Microsoft.Graph.Communications.Calls.Media.MediaCommunicationsClientBuilderExtensions.SetMediaPlatformSettings(ICommunicationsClientBuilder statefulClientBuilder, MediaPlatformSettings mediaSettings) --- End of inner exception stack trace --- at Microsoft.Graph.Communications.Calls.Media.MediaCommunicationsClientBuilderExtensions.SetMediaPlatformSettings(ICommunicationsClientBuilder statefulClientBuilder, MediaPlatformSettings mediaSettings) at EchoBot.Bot.BotService.Initialize() in C:\microsoft-graph-comms-samples\Samples\PublicSamples\EchoBot\src\EchoBot\Bot\BotService.cs:line 141 at EchoBot.BotHost.StartAsync() in C:\microsoft-graph-comms-samples\Samples\PublicSamples\EchoBot\src\EchoBot\BotHost.cs:line 138 at EchoBot.EchoBotWorker.ExecuteAsync(CancellationToken stoppingToken) in C:\microsoft-graph-comms-samples\Samples\PublicSamples\EchoBot\src\EchoBot\EchoBotWorker.cs:line 24

tranguyendinh avatar Dec 13 '24 10:12 tranguyendinh

@tranguyendinh Your issue is unrelated. The error message you shared is pretty clear about the cause of the issue:

---> System.ArgumentException: CertificateThumbprint (Parameter 'Could not find a matching certificate for thumbprint 9E95EBE782871401573B547F603FCD2D797FFDD6')

If you need more help, I'd suggest opening a separate issue to keep things searchable

InDieTasten avatar Dec 15 '24 12:12 InDieTasten