InvalidProgramException

Jan 15, 2010 at 7:27 PM

Any hints for troubleshooting this issue??

Thanks in advance.

Get-TFS : Common Language Runtime detected an invalid program.
At line:1 char:8
+ get-tfs <<<<
    + CategoryInfo          : WriteError: (:) [Get-TFS], InvalidProgramException
    + FullyQualifiedErrorId : <ID>,PowerShell.Host.PsTFS.CdmLet.GetTFS

Coordinator
Jan 23, 2010 at 2:42 PM

Hi

What your OS ?

Powershell version ?

Language ?

Thank you

May 18, 2011 at 2:05 PM

Hi i am facing same issue... OS is 2008 R2... powershell version 1.0... lanugage English...

 

please help me.

Jul 11, 2012 at 3:03 PM
Edited Jul 11, 2012 at 3:04 PM

Same issue.

 

PowerShell Version: 2.0

OS: Windows 2008 Server R2 Enterprise SP1 (64-bit)

Feb 22, 2013 at 9:43 PM
Edited Feb 22, 2013 at 9:44 PM
Same.
OS 2008 R2
Anyone find a solution?

Get-TFS : Common Language Runtime detected an invalid program.
At line:1 char:15
  • $tfs = Get-TFS <<<< http://serverpath:8080/tfs/mycollectionname
    • CategoryInfo : WriteError: (:) [Get-TFS], InvalidProgramException
    • FullyQualifiedErrorId : <ID>,PowerShell.Host.PsTFS.CdmLet.GetTFS
Get-AllProjects : Common Language Runtime detected an invalid program.
At line:2 char:22
  • $lp = Get-AllProjects <<<< $tfs
    • CategoryInfo : NotSpecified: (:) [Get-AllProjects], InvalidProgramException
    • FullyQualifiedErrorId : System.InvalidProgramException,PowerShell.Host.PsTFS.CdmLet.Get_AllProjects
Cannot index into a null array.
At line:3 char:10
  • $p = $lp[ <<<< 0]
    • CategoryInfo : InvalidOperation: (0:Int32) [], RuntimeException
    • FullyQualifiedErrorId : NullArray
Feb 20 at 9:53 PM
I am having the same problem.

Windows 7 Professional SP1, PowerShell Version 3.0 (English).
Mar 11 at 3:27 PM
Edited Mar 11 at 3:29 PM
I'm also having this issue.
OS: Windows 7 Professional SP1
Powershell: v3.0
Language: English

get-tfs : Common Language Runtime detected an invalid program.
At line:1 char:1
  • get-tfs
  • ~~~~~~~
    • CategoryInfo : WriteError: (:) [Get-TFS], InvalidProgramException
    • FullyQualifiedErrorId : <ID>,PowerShell.Host.PsTFS.CdmLet.GetTFS
Mar 11 at 3:39 PM
I also tried this in the window as admin and same issue.
Mar 11 at 4:01 PM
Both of my boxes have the same issue.