![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||