引用CefSharp 报'CefSharp.core.dll' or one of its dependencies,找不到指定的模块错误

jason173 2018-03-16 06:22:13
代码是在这个网址上:https://github.com/cefsharp/CefSharp 下载的。
我是通过VS2015编译的,编译成功后在我电脑上能正常运行,但是我将这个复制到同事电脑上报下面错误。

最后我在Program.cs里做了个错误抛出,结果抛出的错误如下:
System.IO.FileNotFoundException;Coloud not load file or assembly 'CefSharp.core.dll' or one of its dependencies,找不到指定的模块。

PS: 我在同事电脑上装了vc_redist2015.x86、vcredist2013_x86、vcredist2012_x86、vcredist2010_x86,运行报这个错误。
后面又将vc_redist2015.x64、vcredist2013_x64、vcredist2012_x64、vcredist2010_x64都装了,运行报这个错误。

后面在网上查到要将 msvcp120.dll msvcr120.dll 拷贝至C:\Windows\System32。 我将我电脑上的这两个文件发给同事,放到他的C:\Windows\System32目录下,结果运行还是报这个错误。

请问各位大神还有什么要操作的,谢谢!
...全文
1818 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
eva16333 2019-06-19
  • 打赏
  • 举报
回复 1
你即使安装了所有版本的vc_redist,还是出现报dll无法找到,那是很大可能是因为你发布给别人的是debug编译的文件,Debug编译的文件只适合安装了VS开发环境的系统,所以你必须切换到Release模式重新编译发布给别人,问题就可以解决了。
泡泡龙 2018-03-20
  • 打赏
  • 举报
回复
引用 8 楼 jason173 的回复:
[quote=引用 6 楼 liucqa 的回复:] cefsharp 63需要20个文件才能运行,你查查你有多少个
有20多个,文件应该没有少。后面我找了个早期版本的,用了早期版本的相关文件放到项目里面重新编译后的在自己电脑和同事电脑上都可以。[/quote] 用depends 2.2看看依赖啊
jason173 2018-03-19
  • 打赏
  • 举报
回复
引用 6 楼 liucqa 的回复:
cefsharp 63需要20个文件才能运行,你查查你有多少个
有20多个,文件应该没有少。后面我找了个早期版本的,用了早期版本的相关文件放到项目里面重新编译后的在自己电脑和同事电脑上都可以。
jason173 2018-03-19
  • 打赏
  • 举报
回复
引用 5 楼 StratosBlue 的回复:
不知道你编译的具体什么情况。我用Nuget里面的版本部署没问题的,只需要.net4.5.2以上和x86或者x64的VCR13,Windows7到12的Server都没有问题。没有特殊需求必须修改源码的话,建议你直接用Nuget。
引用 5 楼 StratosBlue 的回复:
不知道你编译的具体什么情况。我用Nuget里面的版本部署没问题的,只需要.net4.5.2以上和x86或者x64的VCR13,Windows7到12的Server都没有问题。没有特殊需求必须修改源码的话,建议你直接用Nuget。
嗯 用NetGet我试了,是没有问题德,复制德其它同事的电脑上也能用。 在 https://github.com/cefsharp/CefSharp 上下载的例子,用里面的相关动态库编译的话在本机可以,拷贝到其它同事电脑上就不行。
泡泡龙 2018-03-19
  • 打赏
  • 举报
回复
cefsharp 63需要20个文件才能运行,你查查你有多少个
Anonymous477 2018-03-19
  • 打赏
  • 举报
回复
不知道你编译的具体什么情况。我用Nuget里面的版本部署没问题的,只需要.net4.5.2以上和x86或者x64的VCR13,Windows7到12的Server都没有问题。没有特殊需求必须修改源码的话,建议你直接用Nuget。
jason173 2018-03-16
  • 打赏
  • 举报
回复
引用 3 楼 jason173 的回复:
[quote=引用 2 楼 StratosBlue 的回复:] 除了VC还要看下.net版本; 使用Nuget安装的话readme里面有这样两句;

  - Minimum of .Net 4.5.2
  - Make sure `VC++ 2013 Redist` is installed (either `x86` or `x64` depending on your application)
你可以对照你的编译环境检查一下; 如果没有修改源码的话,还是直接使用Nuget简单些; 直接在Nuget中安装CefSharp.WinForms或者CefSharp.Wpf就可以使用了;
版本是4.5.2 ,在我的电脑上是能用的。 就是编译到好后复制到其它电脑上用不了。。 不知道还少什么依赖项没在其它电脑上安装。 [/quote] 用CefSharp 这个最麻烦的就是部署。 就是不知道他需要哪些依项。
jason173 2018-03-16
  • 打赏
  • 举报
回复
引用 2 楼 StratosBlue 的回复:
除了VC还要看下.net版本; 使用Nuget安装的话readme里面有这样两句;

  - Minimum of .Net 4.5.2
  - Make sure `VC++ 2013 Redist` is installed (either `x86` or `x64` depending on your application)
你可以对照你的编译环境检查一下; 如果没有修改源码的话,还是直接使用Nuget简单些; 直接在Nuget中安装CefSharp.WinForms或者CefSharp.Wpf就可以使用了;
版本是4.5.2 ,在我的电脑上是能用的。 就是编译到好后复制到其它电脑上用不了。。 不知道还少什么依赖项没在其它电脑上安装。
Anonymous477 2018-03-16
  • 打赏
  • 举报
回复
除了VC还要看下.net版本; 使用Nuget安装的话readme里面有这样两句;

  - Minimum of .Net 4.5.2
  - Make sure `VC++ 2013 Redist` is installed (either `x86` or `x64` depending on your application)
你可以对照你的编译环境检查一下; 如果没有修改源码的话,还是直接使用Nuget简单些; 直接在Nuget中安装CefSharp.WinForms或者CefSharp.Wpf就可以使用了;
jason173 2018-03-16
  • 打赏
  • 举报
回复
自己先顶下
Overview This OPC UA reference implementation is targeting the .NET Standard Library. .Net Standard allows developing apps that run on all common platforms available today, including Linux, iOS, Android (via Xamarin) and Windows 7/8/8.1/10 (including embedded/IoT editions) without requiring platform-specific modifications. Furthermore, cloud applications and services (such as ASP.Net, DNX, Azure Websites, Azure Webjobs, Azure Nano Server and Azure Service Fabric) are also supported. Features included 1. Fully ported Core UA stack and SDK (Client, Server, Configuration & Sample assemblies) 2. Sample Servers and Clients, including all required controls, for .Net 4.6, .NetCore and UWP. 3. X.509 certificate support for client and server authentication 4. Anonymous, username, X.509 certificate (experimental) and JWT (experimental) user authentication 5. UA-TCP & HTTPS transports (client and server) 6. Folder certificate-store support 7. Sessions (including UI support in the samples) 8. Subscriptions (including UI support in the samples) Getting Started All the tools you need for .Net Standard come with the .Net Core tools. See here for what you need. How to create self signed certificates for the sample applications On Windows 1. Open a command prompt in the root folder of your repository 2. Run the script CreateAllCerts.cmd in the root folder of your repository to create the certificates for all sample applications. 3. Alternatively, you can run the script CreateCert.cmd in each sample project folder to create new self signed certificates for the application. 4. The self signed certificates are stored in OPC Foundation/CertificateStores/MachineDefault in each application project folder On Linux 1. Open a command prompt 2. Navigate to the project folder of the sample app, e.g. SampleApplications/Samples/NetCoreConsoleClient 3. Run the script ./createcert.sh to create the certificates for the sample applications. 4. The self signed certificates are stored in OPC Foundation/CertificateStores/MachineDefault in each application project folder How to build and run the samples in Visual Studio on Windows 1. Create certificates for all sample applications. 2. Open the solution UA-NetStandard.sln with VisualStudio. 3. Choose a project in the Solution Explorer and set it with a right click as Startup Project. 4. Hit F5 to build and execute the sample. How to build and run the console samples on Windows, Linux and iOS This section describes how to run the NetCoreConsoleClient, NetCoreConsolePublisher and NetCoreConsoleServer sample applications. Please follow instructions in this article to setup the dotnet command line environment for your platform. Prerequisites 1. Once the dotnet command is available, navigate to the root folder in your local copy of the repository and execute dotnet restore. This command calls into NuGet to restore the tree of dependencies. Start the server 1. Open a command prompt 2. Now navigate to the folder SampleApplications/Samples/NetCoreConsoleServer. 3. Run the script ./createcert.sh on Linux or CreateCert.cmd on Windows to create the self signed certificate for the command line application. 4. To run the server sample type dotnet run. The server is now running and waiting for connections. In this sample configuration the server always accepts new client certificates. Start the client 1. Open a command prompt 2. Now navigate to the folder SampleApplications/Samples/NetCoreConsoleClient. 3. Run the script ./createcert.sh on Linux or CreateCert.cmd on Windows to create the self signed certificate for the command line application. 4. To execute the sample type dotnet run to connect to the OPC UA console sample server running on the same host. To connect to another OPC UA server specify the server as first argument and type e.g. dotnet run opc.tcp://myserver:51210/UA/SampleServer. How to build and run the OPC UA Web Telemetry sample • Go to the Azure portal and create a new Storage account. • Open the solution OpcUaWebTelemetry.sln with VisualStudio 2015. • Open the MessageProcessing\Configuration.cs file to configure the app to use your Azure resources (Storage account and IoTHub). // {StorageAccountName} is the name of the storage account and could be found // under Settings->Access keys->Storage account name of your storage account on the Azure portal. // {AccessKey} is the access key of the storage account and could be found // under Settings->Access keys->key1 of your storage account on the Azure portal. public static string StorageConnectionString = "DefaultEndpointsProtocol=https;AccountName={StorageAccountName};AccountKey={AccessKey}"; // {ConsumerGroupName} is the name of a aonsumer group of your IoTHub. The IoTHub you use is the // one you have created for use with the OPC UA Publisher sample. // You need to create this consumer group via the messaging settings of your IoTHub in the Azure portal. // We recommend that you do not share this Consumer group with other consumers, nor that you use the $Default consumer group. public static string EventHubConsumerGroup = "{ConsumerGroupName}"; // {EventHubEndpoint} is the Event Hub compatible endpoint of your IoTHub and could be found // under Settings->Messaging->Event Hub-compatible endpoint of your IoTHub in the Azure portal. // {PrimaryKey} is the IoT Hub primary key for access with iothubowner policy and could be found // under Settings->Shared access policies->iothubowner->Primary key of your IoTHub in the Azure portal. public static string EventHubConnectionString = "Endpoint={EventHubEndpoint};SharedAccessKeyName=iothubowner;{PrimaryKey}"; // {HubName} is the Event Hub compatible name of your IoTHub and could be found // under Settings->Messaging->Event Hub-compatible name of your IoTHub in the Azure portal. public static string EventHubName = "{HubName}"; • Save the file, rebuild the solution and start it. This will start a local instance of the application. • The solution can also be deployed into a Azure App service. Please use VisualStudio 2015's Azure publishing functionality for this purpose. • Now run the OPC UA Publisher sample, connect to a OPC UA server and publish a node. • You should see the node value on the web page after a few seconds. License This repository includes the UA .NetStandard Stack, sample libraries, and sample applications. The UA .NetStandard Stack follows a dual-license: • OPC Foundation Corporate Members: RCL • Everybody else: GPL 2.0 • RCL enables OPC Foundation members to deploy their applications using the UA .NetStandard stack without being required to disclose the application code. Non-members must disclose their application code when using the UA .NetStandard Stack. • Note: Dual license applies to this repository only; GPL 2.0 applies to all derived repositories (for example 'forks'). For details check the License section below. • All samples are provided under the MIT license. Contributing We strongly encourage community participation and contribution to this project. First, please fork the repository and commit your changes there. Once happy with your changes you can generate a 'pull request'. You must agree to the contributor license agreement before we can accept your changes. The CLA and "I AGREE" button is automatically displayed when you perform the pull request. You can preview CLA here.
5.36 is now RTM! NEW/IMPROVED: There's now a built-in interactive RegEx utility! Press Ctrl+Shift+F1, or choose the option on the Help menu. The utility is implemented as a LINQPad script - click on the built-in samples to view. LINQPad now includes a set of HTML controls for writing interactive queries. Unlike WPF and Windows Forms controls, these render in the same output panel as your results. To use them, just instantiate and dump them: // All the controls live in the LINQPad.Controls namespace. var txt = new TextBox().Dump(); txt.TextInput += (sender, args) => $"You typed {txt.Text}".Dump(); Click here for an interactive tutorial. The NuGet search engine now recognizes SemVer2 prerelease packages, and uses a new faster API. You can now reference NuGet packages that include only native DLLs, such as Microsoft.ChakraCore. To invoke the native methods, set the query type to 'C# Program' and declare the methods that you want to call prefixed with the appropriate DllImport attributes. LINQPad now identifies NuGet packages with duplicate extension attributes in Content_Types.xml, and automatically removes the duplicates so that the package loader will not throw an InvalidOperationException. C# 7.3 is now supported. When connecting to SQL Azure, you can now opt for Universal Active Directory authentication, with support for multi-factor authentication. There are new methods in LINQPad's Util class to load/save strings or byte arrays to a central machine store (shared between queries). These methods are Util.SaveString, Util.SaveBytes, Util.LoadString, and Util.LoadBytes. LINQPad's embedded ILSpy has now been updated to V4. You can now enable or disable compiler optimizations on a per-query basis, by starting your query with the following code: #LINQPad optimize+ // To force optimizations on for this query #LINQPad optimize- // To force optimizations off for this query In the SQL connection dialog, when you choose the 'Display all databases in TreeView' opt
Twitter Digg Facebook Del.icio.us Reddit Stumbleupon Newsvine Technorati Mr. Wong Yahoo! Google Windows Live Send as Email Add to your CodeProject bookmarks Discuss this article 85 Print Article Database » Database » Other databasesLicence CPOL First Posted 19 Jan 2012 Views 24,219 Downloads 992 Bookmarked 74 times RaptorDB - The Key Value Store V2 By Mehdi Gholam | 8 Mar 2012 | Unedited contribution C#.NETDBABeginnerIntermediateAdvanceddatabase Even faster Key/Value store nosql embedded database engine utilizing the new MGIndex data structure with MurMur2 Hashing and WAH Bitmap indexes for duplicates. See Also More like this More by this author Article Browse Code Stats Revisions (8) Alternatives 4.95 (56 votes) 1 2 3 4 5 4.95/5 - 56 votes μ 4.95, σa 1.05 [?] Is your email address OK? You are signed up for our newsletters but your email address is either unconfirmed, or has not been reconfirmed in a long time. Please click here to have a confirmation email sent so we can confirm your email address and start sending you newsletters again. Alternatively, you can update your subscriptions. Add your own alternative version Introduction What is RaptorDB? Features Why another data structure? The problem with a b+tree Requirements of a good index structure The MGIndex Page Splits Interesting side effects of MGIndex The road not taken / the road taken and doubled back! Performance Tests Comparing B+tree and MGIndex Really big data sets! Index parameter tuning Performance Tests - v2.3 Using the Code Differences to v1 Using RaptorDBString and RaptorDBGuid Global parameters RaptorDB interface Non-clean shutdowns Removing Keys Unit tests File Formats File Format : *.mgdat File Format : *.mgbmp File Format : *.mgidx File Format : *.mgbmr , *.mgrec History Download RaptorDB_v2.0.zip - 38.7 KB Download RaptorDB_v2.1.zip - 39 KB Download RaptorDB_v2.2.zip - 39 KB Download RaptorDB_v2.3.zip - 39.6 KB D

111,112

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧