2009-01-02 39 views
10

निर्दिष्ट VS2005 के अंदर फ़ाइल नहीं ढूंढ सकता है, हमारे पूरे प्रोग्रामिंग कर्मचारियों को यह त्रुटि संदेश स्पोरैडिक मिलता है और यह हमेशा बेनेकंट्रोल प्रोजेक्ट पर रहता है। यह त्रुटि संदेश दिन में कई बार होता है और यह नियंत्रण के लिए डिज़ाइन मोड में जाने पर होता है। आम तौर पर पुनर्निर्माण के लिए BeneControls समस्या को हल करता है लेकिन कभी-कभी पूरे समाधान को पुनर्निर्मित करना होता है।फ़ाइल या असेंबली 'xxxx' या इसकी निर्भरताओं में से एक लोड नहीं हो सका। सिस्टम

क्या किसी और ने अभी तक इस समस्या को हल किया है?

कोई भी सिफारिश या वेबसाइट जो बताती है कि क्या करने की आवश्यकता है?

कभी-कभी मैं चाहता हूं कि एमएस त्रुटि संदेश स्क्रीन पर पुनर्निर्माण बटन जोड़ देगा।

हम विजुअल स्टूडियो 2005, वीबी.नेट और डेवएक्सप्रेस कंट्रोल का उपयोग कर रहे हैं। , कि बताता है मुझे आप संस्करण संख्या लगातार बदल रहा है -


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) 

अग्रिम धन्यवाद, गेरहार्ड

उत्तर

10

संस्करण = 1.0.3289.23008:

यहाँ पूरे त्रुटि संदेश है क्या आपने विकास के दौरान संस्करण संख्या को ठीक करने के बारे में सोचा है?

AssemblyInfo.vb पर:

वर्तमान में यह बढ़ाने के लिए सेट है:

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

को बदलें:

[assembly: AssemblyVersion("1.0.0.0")] 

और आप एक निश्चित संस्करण में पास है।

+0

आपके उत्तर के लिए धन्यवाद। आप "संस्करण संख्या पर कैसे ठीक करें"? क्या कदम उठाने होंगे? –

+1

मैंने चरणों के साथ अपना जवाब संपादित किया। –

+0

यदि मुझे स्वचालित रूप से बिल्ड नंबर और परिनियोजन के लिए संशोधन सेट करना है तो समाधान क्या है? अगर मैं इसे 1.0.0.0 में बदलता हूं तो मुझे हमेशा इसे मैन्युअल रूप से बदलना होगा। – Kashif

0

मैंने इसे अतीत में देखा है जहां नियंत्रण उपभोक्ता के समान असेंबली में था - जीएसी और वर्जनिंग ने वहां मदद नहीं की - ऐसा लगता है कि डिजाइनर ताले स्मृति में असेंबली, और झुकाव से इंकार कर दिया।

सलाह हमारे डेवलपर्स जब वी.एस. बंद करने, या निर्माण प्रकार के बीच स्विच प्रपत्र डिजाइनरों खुला छोड़ नहीं है

1

खैर (मुझे लगता है कि साझा करने में एक ही उत्पादन का निर्माण विन्यास के बीच VB.Net में फ़ोल्डर की वजह से) , मैं डेवलपर नहीं हूं लेकिन मुझे एक ऐसी परियोजना को तैनात करना है जो वास्तव में विंडोज 2008 सर्वर 64 बिट पर फ़ैक्स सेवाओं का उपयोग करके फ़ैक्स भेजता है। यह परियोजना विंडोज 32 बिट प्लेटफ़ॉर्म पर विकसित की गई थी और मैं सभी निर्देशों को दिए गए निर्देश के अनुसार सेट कर रहा था लेकिन फिर भी मुझे यह परेशानी हुई त्रुटि मिली और फिर मुझे समाधान मिला और यह प्लेटफॉर्म को किसी भीcpu से x86 में बदलना था और यह काम करता था। एक पूर्ण सेटिंग सूची के लिए कृपया नीचे दिए गए लिंक का पालन करें: http://www.sizledcore.com/2011/10/could-not-load-file-or-assembly/

संबंधित मुद्दे

 संबंधित मुद्दे