Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not found exception when used from within office application #2228

Closed
OOTTMM opened this issue Jan 8, 2018 · 2 comments
Closed

File not found exception when used from within office application #2228

OOTTMM opened this issue Jan 8, 2018 · 2 comments

Comments

@OOTTMM
Copy link

OOTTMM commented Jan 8, 2018

Hi guys,
I am trying to get CefSharp to work from within an C# MSO COM add-in.
When I try to build the WinForm example in my add-in code everything compiles without errors but when I load the form and the first call to CefSharp is made => CefSettings settings = new CefSettings();
I get the below error.

System.IO.FileNotFoundException was unhandled
Message: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.
Additional information: Could not load file or assembly 'CefSharp, Version=57.0.0.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138' or one of its dependencies. The system cannot find the file specified.

The same code works in a normal Win form app without any error. I double checked the created x86 folder and all files are there. Any idea how to proceed?

My configuration
Nuget 57.0
Excel2013
Win 8.1
WinForms
x86

Kind regards
Oliver

@mitchcapper
Copy link
Contributor

Hi Oliver gitter is best for questions, try using procmon to make sure the dll's are where expected and search ticket history for some of the other issues.

@amaitland
Copy link
Member

Duplicate of #2109 and #1191

I'd suggest you look at a different CEF wrapper as CefSharp is not going to work out of the box in that scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants