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

VCRUNTIME140_1.dll was not found #178

Open
icnocop opened this issue Mar 27, 2023 · 2 comments
Open

VCRUNTIME140_1.dll was not found #178

icnocop opened this issue Mar 27, 2023 · 2 comments

Comments

@icnocop
Copy link

icnocop commented Mar 27, 2023

Hi.

Thank you for WebView2Samples.

When running WebView2SampleWinComp.exe on a machine without the Visual C++ runtime, the following error occurs:

---------------------------
WebView2SampleWinComp.exe - System Error
---------------------------
The code execution cannot proceed because VCRUNTIME140_1.dll was not found. Reinstalling the program may fix this problem. 
---------------------------
OK   
---------------------------

The requirement to download and install the Visual C++ runtime should be documented.

For example, on Windows Server 2019, I had to install the x64 version: https://aka.ms/vs/17/release/vc_redist.x64.exe

Source:
https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022

Thank you.

@champnic
Copy link
Member

Hey @icnocop - Thanks for the report! We do list Visual Studio 2019 with C++ support as a prereq for the WinComp sample. Did you have this step but it doesn't include the Visual C++ runtime? If so, I'll add the runtime to that list of prereqs.
https://learn.microsoft.com/en-us/microsoft-edge/webview2/samples/webview2samplewincomp#step-2---install-visual-studio-with-c-support

@icnocop
Copy link
Author

icnocop commented Mar 29, 2023

Hi @champnic

The steps on that page are for building the sample application, although I didn't need to install a preview channel of Microsoft Edge in order to build or run the sample application.

In any case, the issue occurs if I build the sample application on my development machine, and then copy the binaries and try to run the sample application on a different machine.

Thank you.

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

2 participants