【问题标题】:Getting Error : System.IO.FileNotFoundException: Could not load file or assembly出现错误:System.IO.FileNotFoundException:无法加载文件或程序集
【发布时间】:2011-08-12 07:39:08
【问题描述】:

System.IO.FileNotFoundException:无法加载文件或程序集“Microsoft.Practices.EnterpriseLibrary.Data,Version=2.0.0.0,Culture=neutral,PublicKeyToken=null”或其依赖项之一。系统找不到指定的文件。

当我尝试在本地主机上测试我的 web 服务方法时出现此错误。我在这一行得到了错误。

public ICampgroundsNearMeManager campgroundsNearMeManager = ManagerFactory.CreateCampgroundsNearMeManager();

可能出了什么问题?

【问题讨论】:

  • 您是否安装了正确版本的 Microsoft Enterprise Library?

标签: .net mysql web-services .net-3.5


【解决方案1】:

尝试使用Assembly Binding Log Viewer 获取更多信息。

【讨论】:

    【解决方案2】:

    找到解决方案。

    我导入的 DLL 文件似乎有问题。删除了 DLL,清理并构建了项目并且它工作了。

    【讨论】:

      猜你喜欢
      • 2012-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-28
      • 1970-01-01
      • 2023-02-07
      • 1970-01-01
      • 2016-08-16
      相关资源
      最近更新 更多