标签: stdole

错误消息"无法安装或运行应用程序.该应用程序需要在GAC中使用stole Version 7.0.3300.0"

当一个用户尝试运行该应用程序时,我们的ClickOnce应用程序正在报告:

无法安装或运行该应用程序.该应用程序需要在GAC中使用stole Version 7.0.3300.0.

有趣的是,GAC(C:\ Windows\assembly)中没有安装stole.我怎么去那里?

我们使用的是.NET 3.5,它已经安装在这台计算机上.

.net clickonce gac stdole

56
推荐指数
5
解决办法
13万
查看次数

stdole.dll做什么用?

我们有一个大型的C#(.net 2.0)应用程序,它使用我们自己的C++ COM组件和第三方指纹扫描程序库,也可以通过COM访问.我们遇到了一个问题,在生产过程中,指纹库中的某些事件不会被C#应用程序触发,尽管来自我们自己的C++ COM组件的事件被触发并且收到的很好.

使用MSINFO32将工作系统上加载的模块与发生故障的系统上的模块进行比较,我们确定这是由STDOLE.DLL不在GAC中引起的,因此未加载到故障进程中.

将此文件拖到GAC中会导致事件从指纹COM库恢复正常.

那么stdole.dll做什么?它的大小是16k所以它不能太多......它是否与STDOLE32这样的另一个库有某种联系?它的缺席怎么会导致这种奇怪的行为?

我们如何分发stdole.dll?这是一个XCOPY部署应用程序,我们不使用GAC.我们应该将它打包为资源并使用System.EnterpriseServices.Internal.Publish.GacInstall来确保它在GAC中吗?

c# com stdole

39
推荐指数
3
解决办法
6万
查看次数

无法加载文件或程序集stdole

刚与VS2010并排安装VS2015 ......

有问题的应用程序是使用VS2010(设置为使用.Net 4.0)(未迁移到VS2015)在我的机器上正常工作,将其放在服务器上并在堆中摔倒而构建的... stdole是问题...

在错误Windows日志>应用程序中有一个例外:

Exception information: 
Exception type: ConfigurationErrorsException 
Exception message: Could not load file or assembly 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) …
Run Code Online (Sandbox Code Playgroud)

.net c# exception stdole

7
推荐指数
1
解决办法
1万
查看次数

无法沉默嵌入互操作警告

首先,我需要使用第三方ActiveX控件.

接下来,我必须使用stdole库来为第三方控制一些图像.当我在默认设置下编译时,我收到一些警告:

warning CS1762: A reference was created to embedded interop assembly 'c:\Windows\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll' because of an indirect reference to that assembly created by assembly 'XXX\obj\x86\Release\Interop.ThirdPartyControl.dll'. Consider changing the 'Embed Interop Types' property on either assembly.
warning CS1762: A reference was created to embedded interop assembly 'c:\Windows\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll' because of an indirect reference to that assembly created by assembly 'XXX\obj\x86\Release\AxInterop.ThirdPartyControl.dll'. Consider changing the 'Embed Interop Types' property on either assembly.
Run Code Online (Sandbox Code Playgroud)

很容易,我会遵循这个建议,并为嵌入式引用设置Embed Interop Types为false.一切都看起来很好,直到我现在去客户机,当突然应用程序抛出这个:

Could not load file or assembly 'stdole, Version=7.0.3300.0, Culture=neutral, …
Run Code Online (Sandbox Code Playgroud)

c# activex stdole visual-studio-2010

6
推荐指数
1
解决办法
7836
查看次数

强名签名对此程序集stdole.dll无效

我刚开始在ClickOnce应用程序中遇到以下错误。在安装并运行相同的应用程序时,在看似成功的安装之后,我收到一条错误消息:

应用程序验证未成功

我可以看到的错误详细信息是:

强名签名对此程序集stdole.dll无效。

当我单击详细信息时,我得到

错误详细信息在此操作中检测到​​以下错误。* [2016年4月13日11:33:22 AM] System.Deployment.Application.InvalidDeploymentException(SignatureValidation)-强名称签名对此程序集stdole.dll无效。-来源:System.Deployment-堆栈跟踪:位于System.Deployment.Application.ComponentVerifier.VerifyComponents(),位于System.Deployment.Application.ComponentVerifier.VerifyStrongNameAssembly(String filePath,AssemblyManifest assemblyManifest),位于System.Deployment.Application.DownloadManager.DownloadDependencies(在System.Deployment的SubscriptionState subState,AssemblyManifest deployManifest,AssemblyManifest appManifest,Uri sourceUriBase,String targetDirectory,String组,IDownloadNotification通知,DownloadOptions选项)。

c# wpf clickonce stdole

4
推荐指数
1
解决办法
6078
查看次数

标签 统计

stdole ×5

c# ×4

.net ×2

clickonce ×2

activex ×1

com ×1

exception ×1

gac ×1

visual-studio-2010 ×1

wpf ×1