Microsoft.WindowsAPICodePack.Shell.dll missing?

BioGames wrote on 1/11/2022, 9:32 AM

Hello there,
 

I got this script which supposedly works fine with Vegas Pro 14
However, whenever I try to run It I get this error message.

An error occurred during execution of the script
Error 0x80131600 (message missing)

C:\Users\*****\Documents\Sony Vegas tools\vegas-datamosh-master\Datamix.cs : Metadata file 'Microsoft.WindowsAPICodePack.Shell.dll' could not be found
C:\Users\*****\Documents\Sony Vegas tools\vegas-datamosh-master\Datamix.cs : Metadata file 'Microsoft.WindowsAPICodePack.dll' could not be found

Comments

jetdv wrote on 1/11/2022, 11:23 AM

You'd need to post the actual contents of the Datamix.cs file. Microsoft.WindowsAPICodePack.Shell.dll is not required for standard scripts so this one must be doing something different.

BioGames wrote on 1/11/2022, 12:23 PM

Thanks for the response.

you can find those files here.

https://github.com/delthas/vegas-datamosh

I read somewhere wherever it refers to "Sony.Vegas" in the code, you should change it to "ScriptPortal.Vegas". However, it did not help, unfortunately.

jetdv wrote on 1/11/2022, 3:54 PM

Did you read the "readme" file? The instructions included:

Download the latest release (the windows64.zip file) and unpack it into your C:\Users\<user>\Documents\Vegas Script Menu folder. (If the folder does not exist, create it.)

I assume that zip file includes that DLL file and then this:

If Sony/MAGIX Vegas complains about not finding the Microsoft.WindowsAPICodePack.dll file, simply restart Vegas and it will work. It just happens from time to time and I don't know how to fix it yet.

And, yes, using Sony.Vegas; must be changed to using ScriptPortal.Vegas;

BioGames wrote on 1/12/2022, 1:45 AM

Yes, I read the "readme" file and the instruction included in detail.
This is why I reached for help here because I could see people using SV13 and everything was working fine.

Anyway. Thanks.

jetdv wrote on 1/12/2022, 9:57 AM

Do you have the WindowsAPICodePack.dll file on your system (I thought it might have be included in that ZIP file but I downloaded it and it is not.)

In searching, it appears to be an out-dated file:

https://stackoverflow.com/questions/24081665/windows-api-code-pack-where-is-it

It appears to be available from gitHub too:

https://github.com/aybe/Windows-API-Code-Pack-1.1

Seems to me the author needs to update it to work with the current .NET instead of an outdated dll file that is no longer supported.

Digging further, I found this: The latest file update released for Sony Movie Studio 13 13.0.189 was on 12/12/2014 [file version 1.1.0.0]. Microsoft.WindowsAPICodePack.dll is included in Sony Movie Studio 13 13.0.189, Vegas Pro 16 16, and doPDF 10.4.117.

I do see the file listed in my VEGAS Pro 16 folder! And it's in my VEGAS Pro 19 folder as well. Is it in your VEGAS folder? On this system I have VEGAS Pro 13 through 19 and those files are included with every one of them. So do you see them in your VEGAS folder?

Next, did you also include the "config" file for that script?

Something else you might try, copy that dll file into the script menu folder (wherever you placed the script cs file)