Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error message "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, our ClickOnce application is reporting:

Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC.

It's interesting to note that the GAC (C:\Windows\assembly) does not have stdole installed in it. How do I get it there?

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

like image 498
proudgeekdad Avatar asked Feb 17 '09 19:02

proudgeekdad


1 Answers

Try going to the Publish tab in the project properties and then select the Application Files button. Then set the following properties:

  • File Name of stdole.dll
  • Publish status to Include
  • Download Group to Required

After that you need to republish your application.

If the reference has CopyLocal=true, then the reference will be published with the application. If the reference has CopyLocal=false then the reference will be marked as a prerequisite. This means the assembly must be installed in the client's GAC before the ClickOnce application will install.

There are some assemblies that are installed into the GAC because of the Visual Studio install, not the .NET Framework install. This could be your situation.

like image 56
Darin Dimitrov Avatar answered Nov 08 '22 08:11

Darin Dimitrov