积极答复者
VB2010打开设计界面时,未能加载文件或程序集“xx”或它的某一个依赖项。系统找不到指定的文件。

问题
-
4.0全类库,A引用的项目Utility,都生成在指定的文件夹 APP 中,Utility未做任何更改,打开A的一个窗体的界面时,出错,也不是每次都出错,出错后,删除引用,重新添加就好了,但之前和之后的引用都指向同一个文件,Utility也存在,重新生成项目A时,Utility也跟着重新生成
未能加载文件或程序集“MyNameSpace.Utility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxx”或它的某一个依赖项。系统找不到指定的文件
求解决方法
- 已编辑 无忧无虑2011 2011年4月8日 6:47
答案
-
你好
或者你可以看看你Project 的.Net framework 是選擇了 .Net Framework 4 而不是.Net Framework Client Profile,
還有個玩在Build / Compile 時是Debug 還是Release 的
Please correct me if my concept is wrong
Chi- 已标记为答案 ChiYauModerator 2011年6月24日 5:36
全部回复
-
未能加载文件或程序集“MyNameSpace.Utility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxx”或它的某一个依赖项。系统找不到指定的文件。 此错误的实例(1) 1。 隐藏调用堆栈 在 System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
在 System.Signature..ctor(IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
在 System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
在 System.Reflection.RuntimeMethodInfo.GetParametersNoCopy()
在 System.Reflection.RuntimePropertyInfo.GetIndexParametersNoCopy()
在 System.Reflection.RuntimePropertyInfo.GetIndexParameters()
在 System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetProperties(Type type)
在 System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetProperties()
在 System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties()
在 System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties()
在 System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties()
在 System.ComponentModel.TypeDescriptor.GetProperties(Type componentType)
在 System.Windows.Forms.Design.FormDocumentDesigner.Initialize(IComponent component)
在 System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
在 System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
在 System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
在 System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
在 System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
在 System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
在 System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
在 Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
在 System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host) -
你好
或者你可以看看你Project 的.Net framework 是選擇了 .Net Framework 4 而不是.Net Framework Client Profile,
還有個玩在Build / Compile 時是Debug 還是Release 的
Please correct me if my concept is wrong
Chi- 已标记为答案 ChiYauModerator 2011年6月24日 5:36