无法安装或运行应用程序。该应用程序需要stdole版本7.0.3300.0在GAC应用程序、版本、stdole、GAC

2023-09-02 21:27:49 作者:贫僧是来化妞的

我们的ClickOnce应用程序的报告无法安装或运行应用程序。该应用程序需要stdole版本7.0.3300.0在GAC,当一个用户试图运行应用程序。

Our ClickOnce application is reporting "Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC" when one user tries to run the application.

有趣的是要注意的是,广汽(C: WINDOWS asssembly)没有stdole安装它。任何想法如何得到它呢?

It's interesting to note that the GAC (c:windowsasssembly) does not have stdole installed in it. Any ideas how to get it there?

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

We are using .NET 3.5 and it has been installed on this computer.

推荐答案

所以,事实证明,在.NET文件被复制到 C: Program Files文件 Microsoft.NET 主互操作程序集 。但是,他们从来没有在 GAC 注册。

So it turns out that the .NET files were copied to C:Program FilesMicrosoft.NETPrimary Interop Assemblies. However, they were never registered in the GAC.

我结束了手动拖动文件 C: Program Files文件 Microsoft.NET 主互操作程序集 C: WINDOWS 总成和应用工作这个问题的机器上。你也可以做到这一点编程方式与 GACUTIL 。

I ended up manually dragging the files in C:Program FilesMicrosoft.NETPrimary Interop Assemblies to C:windowsassembly and the application worked on that problem machine. You could also do this programmatically with Gacutil.

如此看来,事情发生到.NET在安装过程中,但这似乎纠正问题。我希望帮助别人了!

So it seems that something happened to .NET during the install, but this seems to correct the problem. I hope that helps someone else out!