Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Powershell and loading dependent assemblies

Reply
 
Old 05-09-2007   #1 (permalink)
Steve


 
 

Powershell and loading dependent assemblies

Is it possible to find out what exact (dependency) assembly Powershell had
trouble finding?

PS Z:\> $vaultServer.Login($loginCredentials)
Exception calling "Login" with "1" argument(s): "Could not load file or
assembly 'Symyx.Framework, Version=1.0.0.0, Cul
ture=neutral, PublicKeyToken=null' or one of its dependencies. The system
cannot find the file specified."
At line:1 char:19
+ $vaultServer.Login( <<<< $loginCredentials)

My System SpecsSystem Spec
Old 05-10-2007   #2 (permalink)
Don Jones [MVP]


 
 

Re: Powershell and loading dependent assemblies

The assembly would be Symyx.Framework.dll. PowerShell can't tell anything
more than that, though. If THAT DLL is available, then it's a dependency,
but the DLL isn't telling PowerShell what the dependency is, so PowerShell
can't tell you.

--
Don Jones
Windows PowerShell MVP
Founder: www.ScriptingAnswers.com
Co-Author: "Windows PowerShell: TFM"

"Steve" <Steve@discussions.microsoft.com> wrote in message
news:9B86CC79-FE7B-4719-95FB-4B02027D1C60@microsoft.com...
> Is it possible to find out what exact (dependency) assembly Powershell had
> trouble finding?
>
> PS Z:\> $vaultServer.Login($loginCredentials)
> Exception calling "Login" with "1" argument(s): "Could not load file or
> assembly 'Symyx.Framework, Version=1.0.0.0, Cul
> ture=neutral, PublicKeyToken=null' or one of its dependencies. The system
> cannot find the file specified."
> At line:1 char:19
> + $vaultServer.Login( <<<< $loginCredentials)


My System SpecsSystem Spec
Old 05-10-2007   #3 (permalink)
Oisin Grehan


 
 

Re: Powershell and loading dependent assemblies

On May 9, 8:26 pm, Steve <S...@discussions.microsoft.com> wrote:
> Is it possible to find out what exact (dependency) assembly Powershell had
> trouble finding?
>
> PS Z:\> $vaultServer.Login($loginCredentials)
> Exception calling "Login" with "1" argument(s): "Could not load file or
> assembly 'Symyx.Framework, Version=1.0.0.0, Cul
> ture=neutral, PublicKeyToken=null' or one of its dependencies. The system
> cannot find the file specified."
> At line:1 char:19
> + $vaultServer.Login( <<<< $loginCredentials)


I was about to post saying you could use my powershell eventing
library ( http://www.codeplex.com/PSEventing ) to hook the current
AppDomain's AssemblyResolve event, before I noticed that this
particular event's delegate signtaure returns an Assembly. I only
support hooking multicast/void delegates at the moment; keep your eyes
open for this feature in future though!

- Oisin

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Installing PowerShell dependent features on W2K8 with PowerShell CTP PowerShell
Powershell Assemblies PowerShell
Powershell assemblies PowerShell
using external assemblies in Powershell scripts PowerShell
Loading Assemblies and Memory PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46