2012-06-14 14 views
6

मैं एक दृश्य स्टूडियो 2010 समाधान है कि एक वर्ग पुस्तकालय (PROJECTA) और दो शेयरप्वाइंट परियोजनाओं (ProjectB & ProjectC) शामिल है। निर्भरता आदेश ProjectB संदर्भ ProejctA और ProjectC संदर्भ दोनों ProjectA & ProjectB है।असेंबली बाध्यकारी त्रुटि: बाध्य परिणाम: घंटा = 0x80070002। सिस्टम फ़ाइल नहीं मिल सकता है निर्दिष्ट

एक विशेष विकास मशीन पर मैं निम्न त्रुटि जब ProjectC बनाने की कोशिश मिलती है:

* Assembly Binder Log Entry (14/06/2012 @ 09:38:32) *

The operation failed.

Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll

Running under executable C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe

--- A detailed error log follows.

=== Pre-bind state information === LOG: User = DOMAIN\username

LOG: DisplayName = ProjectB, Version=0.0.0.0, Culture=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa, processorArchitecture=MSIL (Fully-specified)

LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/

LOG: Initial PrivatePath = NULL

LOG: Dynamic Base = NULL

LOG: Cache Base = NULL

LOG: AppName = devenv.exe

Calling assembly : (Unknown).

LOG: This bind starts in default load context.

LOG: Using application configuration file: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.Config

LOG: Using host configuration file:

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.

LOG: Post-policy reference: ProjectB, Version=0.0.0.0, Culture=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa, processorArchitecture=MSIL

LOG: GAC Lookup was unsuccessful.

LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/ProjectB/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PublicAssemblies/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PublicAssemblies/ProjectB/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/ProjectB/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/ProjectB/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/ProjectB/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/ProjectB/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/Editor/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/Editor/ProjectB/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Platform/Debugger/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Platform/Debugger/ProjectB/ProjectB.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/ProjectB/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PublicAssemblies/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PublicAssemblies/ProjectB/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/ProjectB/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/ProjectB/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/ProjectB/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/DataCollectors/x86/ProjectB/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/Editor/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Microsoft/Editor/ProjectB/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Platform/Debugger/ProjectB.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/CommonExtensions/Platform/Debugger/ProjectB/ProjectB.EXE. LOG: All probing URLs attempted and failed.

मैं कोशिश की है:

Compilation failed. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

जब संलयन लॉग में देख मैं निम्न त्रुटि ने कहा:

  1. प्रोजेक्टबी के संदर्भ को हटाने और इसे दोबारा जोड़ना:
    • एक) एक परियोजना संदर्भ
    • ख) projectB की डिबग फ़ोल्डर में सीधे एक मैनुअल संदर्भ के रूप में के रूप में
  2. मैन्युअल "कॉपी स्थानीय" बदलने GAC
  3. में ProjectB.dll रखने ट्रू टू फाल्स (और वापस टू ट्रू) का विकल्प

और केवल (2) जीएसी में असेंबली रखने से प्रोजेक्टसी को निर्माण करने की अनुमति मिलती है। यह असेंबली क्यों नहीं ढूंढ रहा है क्योंकि इसे (और अन्य मशीनों पर) करना चाहिए?

+0

हैं मशीनों 64 बिट या सिर्फ इस एक के सभी? –

+0

सभी कर रहे हैं 64-बिट Windows Server 2008 R2 – mundeep

उत्तर

3

तो यह कारण विधानसभा नहीं पाया जा सका क्योंकि हम Delayed Signing the Assemblies हैं इसका मतलब था यह है कि पता चला है शीघ्र। मुझे विजुअल स्टूडियो कमांड प्रॉम्प्ट के x86 संस्करण में x86 के लिए सत्यापन छोड़ने की भी आवश्यकता है।

मैं सिर्फ इसलिए एक विशिष्ट आदेश के आधार का निर्माण/तैनाती स्क्रिप्ट की कोशिश कर रहा मैं परीक्षण विधानसभाओं में से एक के साथ निम्न अपवाद विख्यात इस खोज करने में कामयाब:

Could not load file or assembly 'ProjectC.Tests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=e72f8d3506b83180' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)

3

PublicKeyToken = aaaaaaaaaaaaaaaa अलग हो सकता है या हो सकता है विधानसभा की संस्करण संख्या अलग है। मुझे लगता है कि आपको वर्णित Fusion Log Viewer to Debug का उपयोग करना चाहिए और आशा है कि आप पूरी तरह से अपनी समस्या का समाधान करेंगे।

Because the assembly does not have a valid strong name signature, the verification of that signature must be turned off. You can do this by using the –Vr option with the Strong Name tool.

मैं पहले से ही यह सब आवश्यक सार्वजनिक कुंजी के लिए हालांकि केवल 64 दृश्य स्टूडियो कमांड में किया था:

+1

क) फ्यूजन प्रवेश करें मैं क्या समझ सकता हूँ से यह परियोजना बिन फ़ोल्डरों किसी कारण आईडीई फ़ोल्डरों के बजाय के लिए है कि यह GAC की जाँच करता है और उसके बाद से ऊपर है। (ख) ऊपर अगर मैं मैन्युअल GAC यह पाया जाता है (जिसका मतलब कुंजी सही है) में ProjectB विधानसभा डाल उल्लेख किया है - मैं सिर्फ मैन्युअल रूप से जाँच की है (एस.एन. -टी) और चाबी एक ही है। – mundeep

+0

क्या आप कुंजी को पेस्ट कर सकते हैं जिसे आपने चेक किया है (स्न-टी) और असेंबली की संस्करण संख्या भी। – MMK

+0

तो मैं GAC से ProjectB dll हटा दिया और मैं संलयन में निम्नलिखित मिल फिर से निर्माण करने के लिए कोशिश की है: === पूर्व बाँध राज्य सूचना === लॉग इन करें: प्रयोक्ता = डोमेन \ उपयोगकर्ता नाम लॉग इन करें: DisplayName = ProjectB, संस्करण = 0.0.0।0, संस्कृति = तटस्थ, PublicKeyToken = e72f8d3506b83180, प्रोसेसर आर्किटेक्चर = MSIL (पूरी तरह से निर्दिष्ट) लॉग: ऐपबेस = फ़ाइल: /// सी:/प्रोग्राम फ़ाइलें (x86)/माइक्रोसॉफ्ट विजुअल स्टूडियो 10.0/कॉमन 7/आईडीई/ .. ... LOG: पोस्ट-पॉलिसी संदर्भ: प्रोजेक्टबी, संस्करण = 0.0.0.0, संस्कृति = तटस्थ, पब्लिककेट टोकन = e72f8d3506b83180, प्रोसेसर आर्किटेक्चर = एमएसआईएल लॉग: जीएसी लुकअप असफल रहा। – mundeep

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