无法加载文件或程序集“xxxx"或其依赖项之一.该系统找不到指定的文件 [英] Could not load file or assembly 'xxxx' or one of its dependencies. The system cannot find the file specified

查看:26
本文介绍了无法加载文件或程序集“xxxx"或其依赖项之一.该系统找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 VS2005 中,我们的整个编程人员偶尔收到此错误消息,并且它总是在 BeneControls 项目中.此错误消息每天发生多次,并且在进入控件的设计模式时会发生.通常重建 BeneControls 可以解决问题,但有时必须重建整个解决方案.

Inside VS2005, our whole programming staff gets this error message sporadically and it is always on the BeneControls project. This error message happens multiple times a day and it occurs when going into DESIGN mode for a control. Normally rebuilding the BeneControls fixes the problem but somtime the whole solution has to be rebuilt.

有没有其他人解决过这个问题?

Has anyone else solved this problem yet?

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

Any recommendations or web sites that outlines what needs to be done?

有时我只是希望 MS 在错误消息屏幕上添加一个重建按钮.

Sometimes I just wish MS would add a rebuild button to the error message screen.

我们使用的是 Visual Studio 2005、VB.NET 和 DevExpress 控件.

We are using Visual Studio 2005, VB.NET and 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) 

<小时>

提前致谢,格哈德


Thanks in advance, Gerhard

推荐答案

Version=1.0.3289.23008 - 告诉我你的版本号在不断变化,你有没有想过在开发过程中修复一个版本号?

Version=1.0.3289.23008 - that tells me you version number is constantly changing, have you thought about fixing on a version number during development?

在 AssemblyInfo.vb 上:

On AssemblyInfo.vb:

当前设置为递增:

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

更改为:

[assembly: AssemblyVersion("1.0.0.0")]

你有一个固定版本.

这篇关于无法加载文件或程序集“xxxx"或其依赖项之一.该系统找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆