繁体   English   中英

无法加载文件或程序集“xxxx”或其依赖项之一。该系统找不到指定的文件

[英]Could not load file or assembly 'xxxx' or one of its dependencies. The system cannot find the file specified

在VS2005中,我们的整个编程人员偶尔会收到此错误消息,并始终在BeneControls项目中。 此错误消息每天发生多次,并且在进入控件的DESIGN模式时发生。 通常,重建BeneControls可以解决问题,但需要重建整个解决方案。

还有其他人解决了这个问题吗?

是否有任何建议或网站概述了需要做什么?

有时我只希望MS将重建按钮添加到错误消息屏幕。

我们正在使用Visual Studio 2005,VB.NET和DevExpress Controls。

这是整个错误消息:


One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.

Could not load file or assembly 'BeneControls, Version=1.0.3289.23008, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    Hide     

    at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
    at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
    at System.Signature..ctor(RuntimeFieldHandle fieldHandle, RuntimeTypeHandle declaringTypeHandle)
    at System.Reflection.RtFieldInfo.get_FieldType()
    at System.ComponentModel.Design.InheritanceService.AddInheritedComponents(Type type, IComponent component, IContainer container)
    at System.Windows.Forms.Design.DocumentDesigner.Initialize(IComponent component)
    at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
    at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)
    at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
    at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
    at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
    at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host) 

提前谢谢,格哈德

版本= 1.0.3289.23008 - 告诉我您的版本号不断变化,您是否考虑过在开发期间修改版本号?

在AssemblyInfo.vb上:

目前它设置为增量:

[assembly: AssemblyVersion("1.0.*.*")]

改成:

[assembly: AssemblyVersion("1.0.0.0")]

你有一个固定的版本。

好吧,我不是开发人员,但我必须部署一个项目,实际上使用Windows 2008服务器64位上的传真服务发送传真。 该项目是在Windows 32位平台上开发的,我根据给定的指令设置所有信息,但我仍然是这个恼人的错误,然后我找到了解决方案,那就是将平台从anycpu更改为x86并且工作正常。 如需完整的设置清单,请点击以下链接: http//www.sizledcore.com/2011/10/could-not-load-file-or-assembly/

我在过去看到过这种情况,控制与消费者在同一个程序集中 - GAC和版本控制没有帮助 - 它似乎与设计者将程序集锁定在内存中的方式有​​关,并拒绝让步。

我们的开发人员的建议是,在关闭VS或在构建类型之间切换时不要让表单设计者打开(我认为这是由于在VB.Net中的构建配置之间共享相同的输出文件夹)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM