microsoft / VS-Macros

An extension for Visual Studio 2013+ that enables the use of macros in the IDE. The extension can record most of the features in Visual Studio including text editing operations.
Other
131 stars 41 forks source link

'stdole' assembly could not load on every action taken in Macro Explorer #31

Closed jakubsuchybio closed 8 years ago

jakubsuchybio commented 8 years ago

image

justcla commented 8 years ago

Hi Jakub What version (and update) of Visual Studio are you running? Does this error occur reliably every time? What is the macro code that is triggering this bug? (Would you mind sharing the Macro code?) Justin

timsneath commented 8 years ago

Hi Jakub, by any chance are you on the Windows Insiders program? If so, what build of Windows 10 are you running?

And can you check whether the file \Program Files (x86)\microsoft.net\Primary Interop Assemblies\stdole.dll exists on your machine?

We've seen a few instances recently where stdole.dll either got deleted or removed during build-to-build upgrades. Depending on your answer, I have a few potential solutions for you...

jakubsuchybio commented 8 years ago
timsneath commented 8 years ago

Thanks! Can you try running gacutil -i "%ProgramFiles(x86)%\Microsoft.NET\Primary Interop Assemblies\stdole.dll" and then relaunch Visual Studio?

jakubsuchybio commented 8 years ago

Yep that fixed it. However your path didn't work, so I had to put there absolute one. Thanks! Just for future uses:

cd c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\
./gacutil.exe -i "c:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies\stdole.dll"

This v10.0A\bin\NETFX 4.6 Tools\ can be something else (other versions)

timsneath commented 8 years ago

Glad it fixed it, Jakub. Thanks for reporting back.