Search code examples
visual-studio-2017webrtcmscorlib

mscorlib MissingManifestRessource exception when using WebRTC.Initialize


Here is my code from my new C# Windows Universal Project:

public MainPage()
        {
            this.InitializeComponent();
            //Initialization of WebRTC worker threads, etc
            try
            {
                WebRTC.Initialize(this.Dispatcher);
            }catch(Exception e)
            {

            } 
        }

I just installed WebRTC with Nuget with

Install-Package WebRTC -Version 1.62.0.7

and added the line

WebRTC.Initialize(this.Dispatcher);

When I start the app, after some seconds I receive the message, that I shall start the new debugger in new Visual Studio

enter image description here

When I start it, I receive the exception:

enter image description here

If you click on it, it will be bigger.

I am new to Visual Studio 2017 and webRTC. Can you help me with this exception? Is it Visual Studio problem or a WebRTC problem?

Details:

  • starting with Debug x64
  • "WebRTC": "1.62.0.7"
  • Visual Studio 2017 15.4.1

Edit: I updated Visual Studio to 15.5.6 and have still the crash problem without showing me the exception. I asked my question at microsoft feedback.

Edit: If I use English language in Visual Studio, I don't even receive the exception. Visual Studio just stops, wants to start new debugger in new instance of Visual Studio, but can't do it. Only German version shows devenv.exe: Assert failure.

Edit. It is a webRTC problem. Install-Package WebRTC -Version 1.62.0.7installs bad webRTC package.


Solution

  • I received more information in Release Mode

    Unhandled exception at 0x749608F2 in VideoConference1.exe: Microsoft C++ exception: Platform::NullReferenceException ^ at memory location 0x0D92F41C. HRESULT:0x80004003 Ungültiger Zeiger WinRT information: deviceId is a required parameter.

    My WebCam didn't work - https://github.com/ortclib/ortclib-sdk/issues/3