Reputation: 103
I have a simple application using CEFSharp as a webbrowser.
The application works great without any issues on the development PC and a few doczen other PC's is reported to work fine.
However, there is 1-2 users out there with a Windows 10 (64bit) machine where the program crashes on startup without an error message before even showing the form. On other Windows 10 machines it runs just fine.
I tried to read a lot on the net and tried many things in an attempt to fix this, but I am clueless now.
The user has provided me with a Windows Eventlog screenshot from the crash:
Looks like it's a file not found exception in the constructor before creating the form? (not really familiar with this .ctor)
The only file that is loaded is the CEF Chromium browser and all required files are supplied with my installer so I have no clue what exactly is creating this problem.
I am only using this code: (it's a default sample code of the CefSharp project)
Private WithEvents browser As ChromiumWebBrowser
Public Sub New()
InitializeComponent()
Dim settings As New CefSettings()
CefSharp.Cef.Initialize(settings)
browser = New ChromiumWebBrowser("http://www.google.com") With {
.Dock = DockStyle.Fill
}
panBrowser.Controls.Add(browser)
End Sub
I already tried to add an exception handling to the constructor (based on some recommendations in another forum) to fire a messagebox with the error, but that error event did not fire.
And why does it happen only to this PC and not to most others? Why does the error log show Framework 4.03 as version? Is it OK? (my CefSharp requires and is compiled for 4.61 and the PC has 4.7 installed)
Anything else I could check or you would recommend? Unfortunately I have no phisical access to this problematic PC, so I can only do things remotely.
Thanks for your help.
Upvotes: 0
Views: 660
Reputation: 18320
Answer from the OP's edit:
The missing Microsoft Visual C++ 2013 x32 (required for CefSharp) was the problem. Thanks for all suggestions pointing me to this solution.
Upvotes: 1
Reputation: 100
Check whether .net
Version You have used is installed or not.? if it is not then install corresponding .net framework
as per your Applications Specifications...
Upvotes: 0