ध्यान दें मैंने अपना दूसरा टिकट बंद कर दिया, जो स्थानीयकृत था।
इसलिए मुझे एक समस्या हो रही है जैसे मैं देख रहा हूं कि फ्लुएंथिनबर्ननेट स्थापित करने के लिए नूगेट का उपयोग करने के बाद अन्य पोस्टर आए हैं:
त्रुटि
Could not load file or assembly "NHibernate, Version=3.0.0.2001, Culture=neutral,
PublicKeyToken=aa95f207798dfdb4" or one of its dependencies. The located assembly"s
manifest definition does not match the assembly reference. (Exception from HRESULT:
0x80131040)
मैंने देखा कि stackOverflow के उत्तर और अन्य ब्लॉगों पर उत्तर था:
Add-BindingRedirect
हालाँकि, इससे मेरी समस्या हल नहीं हुई है और उस आदेश को चलाने के सभी परिणाम हैं:
PM> Add-BindingRedirect
Name OldVersion NewVersion
---- ---------- ----------
NHibernate 0.0.0.0-3.0.0.4000 3.0.0.4000
जब मैं NuGet से धाराप्रवाह Nhibernate स्थापित कर रहा हूँ, तो यह निर्भर करता है कि इसकी निर्भरताएँ 3.0.0.2001 Nhibernate हैं, लेकिन यह Nhibernate 3.0.0.4000 स्थापित करता है
मैं क्या गलत कर रहा हूं?
उत्तर:
जवाब के लिए 5 № 1मैं NuGet के साथ विशिष्ट समस्या पर टिप्पणी नहीं कर सकता हूं, लेकिन आपको अपने ऐप के लिए असेंबली बाइंडिंग रीडायरेक्ट करके त्रुटि के आसपास प्राप्त करने में सक्षम होना चाहिए। webfig या web.config।
आप सार्वजनिक कुंजी को जाँचना चाहते हैं कि वहाँ सही है।
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Nhibernate" publicKeyToken="aa95f207798dfdb4"/>
<bindingRedirect oldVersion="3.0.0.2001" newVersion="3.0.0.4000"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
2001 से 4000 तक के सभी अनुरोधों को पुनर्निर्देशित करना चाहिए
जवाब के लिए 4 № 2
मुझे नहीं पता कि आपके पास कितने वेब प्रोजेक्ट हैं, औरजो कि आपका स्टार्ट प्रोजेक्ट सेटअप है, बेसिक है, लेकिन मुझे अपने टेस्ट मेथड के साथ भी यही समस्या थी और मुझे पता चला कि मेरे app.config ऑफ माय टेस्ट प्रोजेक्ट में बाइंडिंग रिडायरेक्ट नहीं है।
मेरे मामले में Add-BindingRedirect कमांड कुछ इस तरह से उत्पन्न होती है
<dependentAssembly>
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.4000" newVersion="3.0.0.4000" />
</dependentAssembly>
इससे मेरी समस्या हल हो गई, मुझे उम्मीद है कि इससे मदद मिलेगी।