Tag: 汇编分辨率

C# – ‘资源’DLL因为不存在而无法加载 – 如何找到引用以便我可以删除它?

我有一个C#解决方案,它在编译时吐出一个可执行的二进制文件。 二进制文件依赖于一个库,它是我写的另一个解决方案的产物,我创建的所有代码都是有关的。 最近我以一种相当随意的方式玩了很多项目设置,试图了解CLR如何构建链接。 不幸的是(可预见的?)我设法打破了我的二进制文件的链接,但我不知道如何解决这个问题。 当我的二进制文件时,我会在应用程序崩溃之前获得以下反馈 加载程序集……..无法在程序集中添加类型MY.Library,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null – 无法加载一个或多个请求的类型。 检索LoaderExceptions属性以获取更多信息 MY.Library.resources DLL的融合日志如下所示。 提到的二进制文件不存在,我不知道它在哪里或为什么要加载。 > All probing URLs attempted and failed *** Assembly Binder Log Entry (22/04/2011 @ 10:34:17) *** The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified. Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll Running […]

尝试运行Fluent NHibernate教程示例时出现运行时错误

我在http://wiki.fluentnhibernate.org/Getting_started上完成了Fluent NHibernate教程,该项目编译得很好。 但是,我收到运行时错误,我似乎无法解决它。 您可以在教程中看到的CreateSessionFactory方法中发生错误。 这里是: private static ISessionFactory CreateSessionFactory() { return Fluently.Configure() .Database ( SQLiteConfiguration.Standard .UsingFile(DbFile) ) .Mappings(m => m.FluentMappings.AddFromAssemblyOf()) .ExposeConfiguration(BuildSchema) .BuildSessionFactory(); } 我认为最有帮助的事情是给你从最外层exception到最内层exception的exception链(这是一个真正的单词): An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail. An invalid or incomplete configuration was used while creating a SessionFactory. Check […]

在不重新编译项目的情况下升级C#项目中的引用dll

我需要使用C#应用程序的内置版本并更改其中一个引用dll。 最好的方法是什么,我在引用dll上关闭了特定的版本,但是当我测试用新版本替换dll时,我得到“无法加载文件或程序集XXXXX,版本= XXXXX。是有一种方法可以阻止加载器关心dll的版本,这样dll只会尝试加载?