cefsharp chromium not working

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

cefsharp chromium not working

Postby akaplan » Sun Sep 05, 2021 1:04 pm

I developed a wpf application using the cefsharp.dll library (for Chromium Web Browser). When I run the application in visual studio on my own machine, everything is ok. But, I'm trying to package the application using Microsoft Visual Studio Installer Projects. When i run the resulting exe file, the application is not working. After that, I checked the event logs and I am getting the error in the screenshot below. I'm waiting for your help.

regards


event log
event id :1026
source .net runtime

Application: WpfApp2.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(System.Data.SQLite.SQLiteConfigOpsEnum)
at System.Data.SQLite.SQLite3.StaticIsInitialized()
at System.Data.SQLite.SQLiteLog.PrivateInitialize(System.String)
at System.Data.SQLite.SQLiteLog.Initialize(System.String)
at System.Data.SQLite.SQLiteConnection..ctor(System.String, Boolean)
at System.Data.SQLite.SQLiteConnection..ctor(System.String)
at WpfApp2.DbProvider..ctor()
at WpfApp2.MainWindow..ctor()

Exception Info: System.Windows.Markup.XamlParseException
at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
at System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
at System.Windows.Application.LoadComponent(System.Uri, Boolean)
at System.Windows.Application.DoStartup()
at System.Windows.Application.<.ctor>b__1_0(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at WpfApp2.App.Main()

other log

event id : 1000

Faulting application name: WpfApp2.exe, version: 1.0.0.0, time stamp: 0x8599ac4b
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1151, time stamp: 0x5da51925
Exception code: 0xe0434352
Fault offset: 0x0012b512
Faulting process id: 0xd9c
Faulting application start time: 0x01d7a007663e8699
Faulting application path: C:\Program Files (x86)\Default Company Name\Setup\WpfApp2.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: fa252ff3-6be6-4015-9db3-7ebf6fa01ae3
Faulting package full name:
Faulting package-relative application ID:
akaplan
Newbie
 
Posts: 2
Joined: Sun Sep 05, 2021 12:53 pm

Re: cefsharp chromium not working

Postby amaitland » Sun Sep 05, 2021 2:30 pm

Your stack trace says the problem is with SQLite3. CefSharp doesn't use SQLite3

Likely your installer isn't packaging unmanaged resources.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: cefsharp chromium not working

Postby akaplan » Tue Sep 07, 2021 3:40 am

Hi again
we solved our sqlite problem

I have now encountered an error as below

can you help with this?


Uygulama: WpfApp2.exe
Framework Sürümü: v4.0.30319
Açıklama: İşlenmeyen bir özel durum nedeniyle işlem sonlandırıldı.
Özel Durum Bilgisi: System.IO.FileNotFoundException
konum: CefSharp.Cef.get_IsInitialized()
konum: CefSharp.Wpf.ChromiumWebBrowser.NoInliningConstructor()
konum: CefSharp.Wpf.ChromiumWebBrowser..ctor()

Özel Durum Bilgisi: System.Windows.Markup.XamlParseException
konum: System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
konum: System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
konum: System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
konum: System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
konum: System.Windows.Application.LoadComponent(System.Uri, Boolean)
konum: System.Windows.Application.DoStartup()
konum: System.Windows.Application.<.ctor>b__1_0(System.Object)
konum: System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
konum: System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
konum: System.Windows.Threading.DispatcherOperation.InvokeImpl()
konum: System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
konum: MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
konum: System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
konum: System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
konum: System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
konum: MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
konum: System.Windows.Threading.DispatcherOperation.Invoke()
konum: System.Windows.Threading.Dispatcher.ProcessQueue()
konum: System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
konum: MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
konum: MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
konum: System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
konum: System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
konum: System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
konum: MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
konum: MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
konum: System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
konum: System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
konum: System.Windows.Application.RunDispatcher(System.Object)
konum: System.Windows.Application.RunInternal(System.Windows.Window)
konum: System.Windows.Application.Run(System.Windows.Window)
konum: WpfApp2.App.Main()
akaplan
Newbie
 
Posts: 2
Joined: Sun Sep 05, 2021 12:53 pm

Re: cefsharp chromium not working

Postby amaitland » Tue Sep 07, 2021 4:41 am

Again likely your installer is missing the unmanaged resources.

Look at your stack trace and it says FileNotFoundException

https://github.com/cefsharp/CefSharp/wi ... ibution%29
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 16 guests