在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)
提前致谢, 格哈德
答案 0 :(得分:10)
版本= 1.0.3289.23008 - 告诉我您的版本号不断变化,您是否考虑过在开发过程中修改版本号?
在AssemblyInfo.vb上:
目前它已设置为增量:
[assembly: AssemblyVersion("1.0.*.*")]
更改为:
[assembly: AssemblyVersion("1.0.0.0")]
你有一个固定的版本。
答案 1 :(得分:1)
好吧,我不是开发人员,但我必须部署一个项目,实际上使用Windows 2008服务器64位上的传真服务发送传真。该项目是在Windows 32位平台上开发的,我根据给定的指令设置所有信息,但我仍然是这个恼人的错误,然后我找到了解决方案,那就是将平台从anycpu更改为x86并且工作正常。有关完整的设置列表,请点击以下链接: http://www.sizledcore.com/2011/10/could-not-load-file-or-assembly/
答案 2 :(得分:0)
我在过去看到过这种情况,控件与消费者在同一个程序集中 - GAC和版本控制没有帮助 - 它似乎与设计师锁定的方式有关在记忆中集会,并拒绝让步。
我们的开发人员的建议是在关闭VS时不要让表单设计者打开,或者在构建类型之间切换(我认为这是由于在VB.Net中的构建配置之间共享相同的输出文件夹)