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

Could not load file or assembly 'Microsoft.Rtc.Internal.Media.DLL' or one of its dependencies. The specified module could not be found.

Open gurujuu opened this issue 3 years ago • 9 comments

Hi,

I am trying to deploy Teams Recording Bot as a web application. While debugging the solution, I am seeing the below error.

image

I am a python programmer, I am very new to Visual studio, .NET and C#. So, it became so difficult for me to understand the information available regarding this issue online. Please help me in debugging this and let me know if you need any other details to understand this issue better or guide me like what else need to be considered such as any version mismatches or something.

gurujuu avatar Sep 19 '22 06:09 gurujuu

Do you run in 64-Bit mode?

Following issues could be helpful for you: #122 and Microsoft.Rtc.Internal.Media assembly error

ghost avatar Sep 19 '22 07:09 ghost

@leo0104 , I am running this locally in Visual Studio using IIS Express(Microosft Edge) in a windows 10 Pro server 64-bit VM.

gurujuu avatar Sep 19 '22 07:09 gurujuu

Did you set x64 as active Platform in the Configuration Manager in Visual Studio?

ghost avatar Sep 19 '22 08:09 ghost

Thanks for replying @leo0104. There are actually 3 projects in this application in which the main solution/project is a web application and the other two projects are Class Libraries. One of the projects is having X64 as active platform

image

gurujuu avatar Sep 19 '22 12:09 gurujuu

You can try to set the platform target of the project where you are using Microsoft.Skype.Bots.Media to x64 and the solution platform to x64 but I'm not 100% sure if it works then.

What kind of webapplication have you created? The only way I have found to use the Skype.Bots.Media package behind a web application is to create an asp.net core project that targets .net framework 4.7.2.

ghost avatar Sep 19 '22 12:09 ghost

Same issue with me

varunk29 avatar Oct 08 '22 16:10 varunk29

You can't run the Bot in IIS, IIS does not have access to windows dependencies like the mentioned dll and other stuff

1fabi0 avatar Oct 13 '22 14:10 1fabi0

You can't run the Bot in IIS, IIS does not have access to windows dependencies like the mentioned dll and other stuff

so how do we run it? Im having a similar problem with the EchoBot example:

Could not load file or assembly 'Microsoft.Extensions.Options, Version=7.0.0.1, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. press any key to exit...

kmulvey avatar Mar 28 '23 19:03 kmulvey

You run it as a .NetFramework (yes the old one) console application on windows

1fabi0 avatar Mar 28 '23 19:03 1fabi0