使用Visual Studio 2013从Enterprise Library 6配置工具/控制台引发FileNotFoundException

时间:2014-05-13 17:39:47

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

我正在尝试使用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(使用Jquery Autocomplete with Web Service(ASMX)DataSource)

我的机器是Windows 7 64位,VS2013更新2.它指的是哪个文件,如何通过此错误?

4 个答案:

答案 0 :(得分:3)

搜索这些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

答案 1 :(得分:2)

检查以下文件。这些可以加载控制台并使用Logging Application Block和Database Trace Listener。

  • 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

答案 2 :(得分:2)

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

答案 3 :(得分:0)

我能够编译代码。链接到企业库6 Config exe是 https://github.com/EnlightonOcean/Microsoft.Practices.EnterpriseLibrary.ConfigConsoleV6 编码愉快.....