WinXP / Vista : script and compatibility ?

Rosebud wrote on 2/18/2008, 10:21 PM
I made a script to batch replace files in a project.
This script seems to work fine with WinXP.
But, an user reports the following error with Vista:
********************************
"An error occurred during execution of the script C:\Program Files\Sony\Vegas Pro 8.0\Script Menu\Batch Replace script\Batch_Replace.dll.

The located assembly's manifest definition does not match the assembly reference."

System.IO.FileLoadException: Could not load file or assembly 'Sony.Vegas, Version=8.0.0.179, Culture=neutral, PublicKeyToken=3cda94b1926e6fbc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Sony.Vegas, Version=8.0.0.179, Culture=neutral, PublicKeyToken=3cda94b1926e6fbc' ---> System.IO.FileLoadException: Could not load file or assembly 'Sony.Vegas, Version=8.0.0.217, Culture=neutral, PublicKeyToken=3cda94b1926e6fbc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Sony.Vegas, Version=8.0.0.217, Culture=neutral, PublicKeyToken=3cda94b1926e6fbc'

Full error message
***********************


Any help will be appreciated.
Gilles

Comments

ForumAdmin wrote on 2/19/2008, 8:17 AM
The problem may be that the user is running 8.0a and you compiled against 8.0b. As of 8.0b, I think this problem is resolved... as long as the user is running 8.0b or better, you can compile against any future version of Vegas 8.

So the best solution is to have the user upgrade to 8.0b. Another option would be for you to compile against the 8.0a or 8.0 assembly if possible. You can still run 8.0b... you just need to reference the earlier assembly when you compile.
Rosebud wrote on 2/20/2008, 11:39 PM
Effectively, the user is running 8.0a.
Many thx.