दूसरों के रूप में दर्शाया गया है, stdole.dll
कार्यालय COM इंटरॉप घटकों का एक समूह के लिए एक प्राथमिक इंटरॉप विधानसभा है। आप यह निर्धारित कर सकते हैं कि यह निम्नलिखित करके आप अपने प्रोजेक्ट में क्यों शामिल हो रहे हैं।
विजुअल स्टूडियो में, Tools > Options > Projects and Solutions > Build and Run
पर जाएं। "MSBuild प्रोजेक्ट बिल्ड आउटपुट वर्बोसिटी" सेटिंग को Detailed
पर बदलें। अब अपनी परियोजना को साफ और पुनर्निर्माण करें।
आउटपुट विंडो खोलें और stdole
के लिए खोजें।
25> Dependency "stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
25> Resolved file path is "D:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Common\stdole.dll".
25> Reference found at search path location "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}".
25> For SearchPath "D:\Git\FoobarServices\Dependencies\Dependencies".
25> Considered "D:\Git\FoobarServices\Dependencies\stdole.winmd", but it didn't exist.
25> Considered "D:\Git\FoobarServices\Dependencies\stdole.dll", but it didn't exist.
25> Considered "D:\Git\FoobarServices\Dependencies\stdole.exe", but it didn't exist.
25> For SearchPath "{CandidateAssemblyFiles}".
25> Considered "Dependencies\CrystalDecisions.CrystalReports.Engine.dll", but its name "CrystalDecisions.CrystalReports.Engine" didn't match.
25> Considered "Dependencies\CrystalDecisions.Enterprise.Framework.dll", but its name "CrystalDecisions.Enterprise.Framework" didn't match.
25> Considered "Dependencies\CrystalDecisions.Enterprise.InfoStore.dll", but its name "CrystalDecisions.Enterprise.InfoStore" didn't match.
25> Considered "Dependencies\CrystalDecisions.ReportSource.dll", but its name "CrystalDecisions.ReportSource" didn't match.
25> Considered "Dependencies\CrystalDecisions.Shared.dll", but its name "CrystalDecisions.Shared" didn't match.
25> Considered "Dependencies\CrystalDecisions.Web.dll", but its name "CrystalDecisions.Web" didn't match.
25> For SearchPath "{TargetFrameworkDirectory}".
25> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\stdole.winmd", but it didn't exist.
25> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\stdole.dll", but it didn't exist.
25> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\stdole.exe", but it didn't exist.
25> For SearchPath "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}".
25> Considered AssemblyFoldersEx locations.
25> Required by "CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL".
25> Required by "CrystalDecisions.ReportSource, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL".
25> Required by "CrystalDecisions.CrystalReports.Engine, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL".
25> Required by "CrystalDecisions.Enterprise.InfoStore, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304".
25> The ImageRuntimeVersion for this reference is "v1.0.3705".
आप देख सकते हैं, जहां दृश्य स्टूडियो विधानसभा के लिए खोज के रूप में अच्छी क्या यह नीचे की आवश्यकता है: आप इस तरह एक वर्ग खोजना चाहिए। मेरे मामले में यह पुराने क्रिस्टल रिपोर्ट असेंबली का एक गुच्छा है।
कभी-कभी आप निर्भरता के माध्यम से इंटरऑप प्रकारों को एम्बेड कर सकते हैं क्योंकि टोनी सुझाव देता है, लेकिन हमेशा नहीं। मेरे लिए, क्रिस्टल रिपोर्ट असेंबली इसका समर्थन नहीं करते हैं।
मैंने stdole.dll
(32 केबी, डिजिटल हस्ताक्षरित) को C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies\
से मेरी परियोजना के अंदर "निर्भरता" फ़ोल्डर में कॉपी करके इस समस्या को हल किया है (और कपटपूर्ण एक स्कॉट्सनिप्रो का उल्लेख किया गया है)। मैंने अपनी परियोजना में फ़ाइल को जोड़ा और इसमें एक स्पष्ट संदर्भ जोड़ा (संदर्भ> ब्राउज़ जोड़ें)।अंत में मैंने नए संदर्भ गुणों को खोला और Embed Interop Types
True
पर सेट किया।
यह एक बेहतर स्थिति प्रतीत होता है। मुझे असेंबली के एक हस्ताक्षरित संस्करण के बारे में चिंता करने की आवश्यकता नहीं है।
इसके बारे में कैसे? मेरा पहला डाउनवोट। कोई प्रतिक्रिया के साथ एक downvote अत्यधिक अनुत्पादक है। –
मुझे इस प्रश्न में रूचि है, क्योंकि stdole.dll मेरे द्वारा किए गए सभी ऐप्स पर पॉप-अप कर रहा है। मैं क्लिक-एक बार प्रकाशित करता हूं और यह विजुअल स्टूडियो 2015 के साथ विफलताओं का कारण बनता है। यह इस प्रश्न से असंबंधित हो सकता है, लेकिन अन्य लोगों को यह प्रश्न उस डीएल के लिए खोज सकता है। इस दूसरे व्यक्ति ने उसे अपने हस्ताक्षरित प्रतिलिपि के साथ बदल दिया: https://iznum.wordpress.com/2013/04/22/strong-name-signature-not-valid-for-this-assembly-stdole-dll/ – 249076
एक और लड़के ने इसके बारे में एक बग पोस्ट किया: https://connect.microsoft.com/VisualStudio/feedback/details/1658072/could-not-load-assembly-file-stdole-dll-that-were-not-actually-using – 249076