Error when starting Powershell after install of PSCX

Topics: User Forum
Mar 27, 2008 at 5:26 PM
I get the following error when I start PowerShell after installing PSCX:

Add-PSSnapin : Windows PowerShell snap-in "Pscx" is loaded with the following warnings: Error loading the extended typ
e data file:
Pscx, C:\Program Files\PowerShell Community Extensions\TypeData\FileSystem.ps1xml(19) : Error in type "System.IO.FileIn
fo": Member "BaseName" is already present.
At C:\Data\username\WindowsPowerShell\profile.ps1:98 char:14
+ Add-PSSnapin <<<< Pscx

I have not installed PSCX before so I have no older versions to uninstall, the environmental variable PSCXHome is there and pointing to the installed location of PSCX. I can use the cmdlets and functions that are installed with PSCX so I am confused as to what is causing this error.
Mar 28, 2008 at 1:11 PM
I believe this is a known issue with PSCX 1.1.1 running on PowerShell V2. Both PSCX and PS V2 define a BaseName member on the FileInfo class. You can manually remove it from the ps1xml file mentioned in the warning message.
Apr 7, 2008 at 3:47 AM
FYI this issue has been fixed in the current bits and will appear in 1.2.