CefSharp XAML parse exception

640 Views Asked by At

I am trying to work with CefSharp for video chat in my WPF application. So I added CefSharp using NuGet and added both CefSharp.Core and CefSharp.WPF. But when ever I try to run it gives me an error, both the code and error is added as image below.Please guide me.

My Code

This is the error I am getting. Error

1

There are 1 best solutions below

2
On

From the top screenshot I see that you are running with Any CPU as platform. You need that to either be x86 or x64. See the Please note: comment under FAQ item #8 at https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions#CefSharp_binaries for further.

The current CefSharp NuGet packages need that to pick up the right unmanaged CEF binaries.

In addition I'd recommend that you start with CefSharp.MinimalExample.Wpf from https://github.com/cefsharp/CefSharp.MinimalExample