interop.vbrun未找到 [英] interop.vbrun not found
问题描述
在编译Visual Studio项目后,我收到以下消息:
After compiling a Visual Studio project I get this message:
System.IO.FileNotFoundException:'Kan bestand of assembly Interop.VBRUN,Version = 6.0.0.0,Culture =中立,PublicKeyToken = null een van de afhankelijkheden hiervan niet laden。 Het systeem kan het opgegeven bestand niet vinden。'
$
System.IO.FileNotFoundException: 'Kan bestand of assembly Interop.VBRUN, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.'
我运行Win10,VS2019(新安装)。
I run Win10, VS2019 (new installed).
我该如何解决这个问题?
How can I solve this?
推荐答案
Hi Dick Klaassen,
欢迎来到MSDN论坛。
您能否与我们分享项目类型你什么时候遇到这个错误的?
根据错误,似乎有些dll缺失。它可能是
是Microsoft.Practices.EnterpriseLibrary.Data.dll ,但它也可能是其他东西(称为"或其依赖项之一")。如果您从Debug构建切换到Release构建或其他各种原因,可能会发生这种情况。
Based on the error, it seems some dll missing. It might be Microsoft.Practices.EnterpriseLibrary.Data.dll, but it could also be something else (referred to as "or one of its dependencies"). Such a thing may happen if you switched from Debug build to Release build or various other reasons.
对于根本原因分析,我建议如下:
获取
进程监视器并记录所有文件活动。为您的应用程序设置过滤器。重现问题后,将日志另存为XML文件。
Get Process Monitor and record all file activities. Set a filter for your application. After reproducing the problem, save the log as XML file.
然后获取我的工具
ProcMon Analyzer (注意:我是它的作者)并打开XML文件。它将分析它并给出一个未找到的DLL列表。
Then get my tool ProcMon Analyzer (note: I'm the author of it) and open the XML file. It will analyze it and give a list of DLLs that were not found.
您也可以手动执行此操作,但请注意,最初可能找不到某些DLL,但稍后在查找%PATH时会找到这些DLL %环境变量,GAC或类似。
该工具将删除所有那些首先没有找到路径但稍后成功的条目。
请检查这些类似的主题:
https://social.msdn.microsoft.com/Forums/en-US/a6542d82-e512-41d1-add0-b49be3c9289d/could-not-load-file-or -assemblyvbrun-version-6000?forum = vbinterop
和
https://stackoverflow.com/questions/41128822/vb-net-could-not-load-file-or-assembly-microsoft-practices-enterpriselibrary-da
此致
可能
这篇关于interop.vbrun未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!