带有 CefSharp 项目的 Winforms CL20R3
Winforms CL20R3 with CefSharp Project
我和这个问题有类似的问题C# windows appication Event: CLR20r3 on application start
错误是这样的:
Application: MantenedorPlanesMain.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Battery:
in CefSharp.Example.CefExample.Init ()
in CefSharp.WinForms.Example.Program.Main ()
但只有在某些机器上,例如,在我的电脑上我可以毫无问题地使用该程序,在我办公室的电脑上也可以。
我试图在Whosebug中找到问题的根源,发现错误是由于找不到cs文件引起的,但在项目中。
当我去查看 CefSharp.WinForms.Example.Program.cs
并评论 CefSharp.Example.CefExample.Init()
行时,在另一个文件中抛出了同样的错误。
我尝试了所有方法,甚至 CopyLocal = true
和 x86
,但仍然无法正常工作。我认为可能是系统语言有问题,这是唯一能正常工作的机器的共同因素,西班牙语系统。
有什么想法吗?
在此上下文中 FileNotFoundException
通常意味着您需要安装 VC++
或者您在 Debug
模式下编译(您需要在 Release
模式下编译 运行 在没有安装 VS 的机器上)
https://github.com/cefsharp/CefSharp/blob/master/NuGet/Readme.txt#L18
中的 Note
我和这个问题有类似的问题C# windows appication Event: CLR20r3 on application start
错误是这样的:
Application: MantenedorPlanesMain.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException Battery: in CefSharp.Example.CefExample.Init () in CefSharp.WinForms.Example.Program.Main ()
但只有在某些机器上,例如,在我的电脑上我可以毫无问题地使用该程序,在我办公室的电脑上也可以。
我试图在Whosebug中找到问题的根源,发现错误是由于找不到cs文件引起的,但在项目中。
当我去查看 CefSharp.WinForms.Example.Program.cs
并评论 CefSharp.Example.CefExample.Init()
行时,在另一个文件中抛出了同样的错误。
我尝试了所有方法,甚至 CopyLocal = true
和 x86
,但仍然无法正常工作。我认为可能是系统语言有问题,这是唯一能正常工作的机器的共同因素,西班牙语系统。
有什么想法吗?
在此上下文中 FileNotFoundException
通常意味着您需要安装 VC++
或者您在 Debug
模式下编译(您需要在 Release
模式下编译 运行 在没有安装 VS 的机器上)
https://github.com/cefsharp/CefSharp/blob/master/NuGet/Readme.txt#L18
中的Note