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

Media platform failed to initialize #784

Open
DynTechieBibin opened this issue Oct 28, 2024 · 4 comments
Open

Media platform failed to initialize #784

DynTechieBibin opened this issue Oct 28, 2024 · 4 comments

Comments

@DynTechieBibin
Copy link

DynTechieBibin commented Oct 28, 2024

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
Copy link
Author

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.

@InDieTasten
Copy link

Congrats to finding your own solution!

I guess you could also close the issue then :)

@tranguyendinh
Copy link

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

@InDieTasten
Copy link

@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

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

3 participants