Friday, July 17, 2009 11:13 AM
We have a VB.NET VS2008 SP1 application that appears to use PowerPacks, though it is not referenced specifically.
On a couple of the PC's we have deployed to the following error occurs:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualBasic.PowerPacks.Vs, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
The PC's have .NET Framework 3.5 SP1 installed, and I also sent them the PowerPacks 3.0 installer to run. This did not fix the problem.
The development machines do not have PowerPacks 3.0 specifically installed - the only dll's in the GAC are Microsoft.VisualBasic.PowerPacks.Vs 126.96.36.199 and Microsoft.VisualBasic.PowerPacks.VsPackage 188.8.131.52
We do not use Windows Installer or ClickOnce, and as the PowerPacks is not specifically referenced we can't tell it to Copy Local.
The application is totally self contained, and we use Inno Setup to create the installer.
We don't know why only some of the PC's are having this problem. They should (in theory) have the same 'standard windows build' on them.
How do we install the needed PowerPacks dependancy to those users that don't seem to have it?
If we knew what DLL's needed to go where, we could put this into the Inno script.
But all my Googling seems to suggest that the PowePacks DLL has some dependacies of it's own, and copying the DLL into the GAC wouldn't work.
And all fixes for this problem refer to the Windows Installer or ClickOnce, and that the bootstrapper will fix everything. How do I use the bootstrapper if I'm not using Windows Installer or ClickOnce?
And would it fix it, if installing the 'non Vs' version of the PowerPacks onto the PC didn't fix it.
Friday, July 17, 2009 3:25 PMModeratorHi Jannie,
You should install the vs bootstrapper from here: %Program Files%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\VBPowerPacks\en\VisualBasicPowerPacksSetup.exe
Some background, the PowerPacks 3.0 is a Download version (non VS version), and later on it is integrated to VS 2008 SP1 (as vs version). They can co-exist but not the same.
By the way, do you know how the PowerPacks is used in your application?
- Marked As Answer by jhenstock Monday, July 20, 2009 9:17 AM
Friday, July 17, 2009 4:05 PMHi John,
Thanks, I've sent that installer to the user, I'll let you know if it works.
(It being 5pm on Friday, I doubt I'll hear till Monday, though).
I haven't had much to do with the creation of the app, just fixing the install issues.
But it's a drawing tool that uses DirectX, i think, and is designed to work on a tablet PC.
Monday, July 20, 2009 9:20 AM
That worked a treat,
Strange how it was only some users that had the problem.