Mediator
Mediator

Reputation: 15378

Problem installing a ClickOnce application

I downloaded setup.exe, and then begin to install and it immediately crashes.

On win7 it worked fine. On XP it doesn't work.

alt text

Error text:

Unable to install or run the application. The application requires that assemble stdole Version 7.0.3300.0 be installed in the Global Assembly Cache (GAC) first.

Upvotes: 2

Views: 4182

Answers (2)

Alex
Alex

Reputation: 2144

This happened to a few people that i had to install a click once application i developed. Basically something happened in their installation of .NET and the needed .DLL's were not moved to the GAC. It's very simple to fix, basically You need to copy stdole.dll from C:\Program Files\Microsoft.NET\Primary Interop Assemblies\ to C:\Windows\Assembly ... that should fix your issue. Including them in the application isn't the best idea, this will fix it for ALL click once applications rather then just that one you are currently building.

P.S. Dragging the files to the location will work, you might get an error if you try to copy it.

Upvotes: 1

Timothy S. Van Haren
Timothy S. Van Haren

Reputation: 8966

You'll need to include stdole.dll as a required file in your Publish settings in Visual Studio. Once you publish your app again, it should then include that file in your app when it's installed.

More info can be found here.

Upvotes: 2

Related Questions