【问题标题】:Configuration Tool/Console from Enterprise Library 6 with Visual Studio 2013 Throws FileNotFoundException带有 Visual Studio 2013 的 Enterprise Library 6 中的配置工具/控制台引发 FileNotFoundException
【发布时间】:2014-05-13 17:39:46
【问题描述】:

我正在试验 EntLib6 和 Visual Studio 2013。

当我尝试使用 EntLibConfig.exe 或 EntLibConfig-32.exe 打开 web.config 时,出现以下异常:

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01:   entlibconfig.exe
Problem Signature 02:   6.0.1304.0
Problem Signature 03:   51795f05
Problem Signature 04:   EntLibConfig
Problem Signature 05:   6.0.1304.0
Problem Signature 06:   51795f05
Problem Signature 07:   3
Problem Signature 08:   29
Problem Signature 09:   System.IO.FileNotFoundException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID:  1033
Additional Information 1:   25bb
Additional Information 2:   25bbdf70ded93ca74287ca4dc5fdb6ca
Additional Information 3:   86d3
Additional Information 4:   86d3c846a76cb9420f22a0b4ef52ed43

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

我在这里试验示例 - http://code.msdn.microsoft.com/Use-Jquery-Autocomplete-a2e3e42e#content(使用 Web 服务 (ASMX) 数据源的 Jquery 自动完成功能)

我的机器是 Windows 7 64 位,VS2013 Update 2。它指的是哪个文件,我该如何解决这个错误?

【问题讨论】:

    标签: visual-studio-2013 crash filenotfoundexception enterprise-library-6


    【解决方案1】:

    搜索这些 dll 并查看它们是否在包含 Entlibconfig.exe 的文件夹中。看起来 Microsoft.Practices.Unity.dll 大部分时间都是问题所在。至少在过去这对我来说一直是个问题。

    Microsoft.Practices.EnterpriseLibrary.Common.dll Microsoft.Practices.EnterpriseLibrary.Configuration.Design.HostAdapterV5.dll Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime.dll Microsoft.Practices.Unity.dll

    【讨论】:

    • @RJN 我不记得了。我想我刚刚重新安装了企业库。但我不是 100% 确定。我可能已经卸载了它然后重新安装。
    【解决方案2】:

    检查是否有以下文件。这些使加载控制台和使用带有数据库跟踪侦听器的日志记录应用程序块成为可能。

    • EntLibConfig.exe EntLibConfig.exe.config
    • Microsoft.Practices.EnterpriseLibrary.Common.dll
    • Microsoft.Practices.EnterpriseLibrary.Configuration.Design.HostAdapter.dll
    • Microsoft.Practices.EnterpriseLibrary.Configuration.Design.HostAdapterV5.dll
    • Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime.dll
    • Microsoft.Practices.EnterpriseLibrary.Configuration.EnvironmentalOverrides.dll
    • Microsoft.Practices.EnterpriseLibrary.Data.dll
    • Microsoft.Practices.EnterpriseLibrary.Logging.Database.dll
    • Microsoft.Practices.EnterpriseLibrary.Logging.dll
    • Microsoft.Practices.ServiceLocation.dll
    • Microsoft.Practices.Unity.dll
    • Microsoft.Practices.Unity.Interception.dll

    【讨论】:

      【解决方案3】:

      对于那些从现在开始找到的人(就像我刚刚做的那样):如果您下载了 EL 二进制文件,安装后会有一个 PowerShell 脚本,install-packages.ps1。运行它会导致一些额外的 DLL(谁知道还有什么)被下载到本地目录,然后 EntLibConfig 运行正常。

      【讨论】:

      • 当我尝试安装 ps1 时,出现错误:警告:远程服务器返回错误:(503) 服务器不可用。知道为什么它无法获取其他二进制文件吗?
      • @RJN 不。可能是您站点的防火墙或网络配置问题?
      • 谢谢!!希望有更好的文档!
      • 跟进我遇到了一个问题 w/install-packages.ps1 在我的新笔记本电脑上“强制关闭远程连接”:我通过从 MS 获取 nuget.exe 并进行黑客攻击来解决这个问题install-packages.ps1 指向新的 nuget.exe,而不是 EL 附带的那个。如果您还没有更改 PowerShell 脚本权限,则可能需要更改,因为黑客攻击可能会破坏签名块。
      【解决方案4】:

      我能够编译代码。链接到 Enterprise library 6 Config exe 是 https://github.com/EnlightonOcean/Microsoft.Practices.EnterpriseLibrary.ConfigConsoleV6 快乐编码.....

      【讨论】:

      • 这并不能真正回答问题,最好作为评论,只是为了说明您没有 OP 4 年前遇到的这个问题。
      猜你喜欢
      • 1970-01-01
      • 2013-11-06
      • 2013-12-30
      • 1970-01-01
      • 2013-11-11
      • 1970-01-01
      • 2016-12-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多