Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Error when starting PS V2 CP

Closed Thread
 
Thread Tools Display Modes
Old 01-10-2008   #1 (permalink)
Thorsten Kampe
Guest
 
Posts: n/a

Error when starting PS V2 CP

I've installed PS V2 (CP) on Windows XP Sp2. When running the shell I
always get these errors (in red):

Windows PowerShell
Copyright (C) 2006 Microsoft Corporation. All rights reserved.

Error loading the extended type data file:
Microsoft.PowerShell.Core, C:\WINDOWS\system32\WindowsPowerShell\v1.0
\types.ps1x
ml(259) : Error in type "System.DirectoryServices.DirectoryEntry":
Exception: Ca
nnot convert "Microsoft.PowerShell.AdapterCodeMethods" to
"System.Type".
Microsoft.PowerShell.Core, C:\WINDOWS\system32\WindowsPowerShell\v1.0
\types.ps1x
ml(266) : Error in type "System.DirectoryServices.DirectoryEntry":
Exception: Ca
nnot convert "Microsoft.PowerShell.AdapterCodeMethods" to
"System.Type".
Microsoft.PowerShell.Core, C:\WINDOWS\system32\WindowsPowerShell\v1.0
\types.ps1x
ml(277) : Error in type "System.IO.DirectoryInfo": Exception: Getter
method shou
ld be public, non void, static, and have one parameter of type
PSObject.
Microsoft.PowerShell.Core, C:\WINDOWS\system32\WindowsPowerShell\v1.0
\types.ps1x
ml(308) : Error in type "System.IO.FileInfo": Exception: Getter method
should be
public, non void, static, and have one parameter of type PSObject.

....and then the prompt appears. Is that expected and can I simply
ignore it?


Thorsten
 
Old 01-10-2008   #2 (permalink)
Marco Shaw [MVP]
Guest
 
Posts: n/a

Re: Error when starting PS V2 CP

Thorsten Kampe wrote:
Quote:

> I've installed PS V2 (CP) on Windows XP Sp2. When running the shell I
> always get these errors (in red):
>
> Windows PowerShell
> Copyright (C) 2006 Microsoft Corporation. All rights reserved.
>
> Error loading the extended type data file:
> Microsoft.PowerShell.Core, C:\WINDOWS\system32\WindowsPowerShell\v1.0
> \types.ps1x
> ml(259) : Error in type "System.DirectoryServices.DirectoryEntry":
> Exception: Ca
> nnot convert "Microsoft.PowerShell.AdapterCodeMethods" to
> "System.Type".
> Microsoft.PowerShell.Core, C:\WINDOWS\system32\WindowsPowerShell\v1.0
> \types.ps1x
> ml(266) : Error in type "System.DirectoryServices.DirectoryEntry":
> Exception: Ca
> nnot convert "Microsoft.PowerShell.AdapterCodeMethods" to
> "System.Type".
> Microsoft.PowerShell.Core, C:\WINDOWS\system32\WindowsPowerShell\v1.0
> \types.ps1x
> ml(277) : Error in type "System.IO.DirectoryInfo": Exception: Getter
> method shou
> ld be public, non void, static, and have one parameter of type
> PSObject.
> Microsoft.PowerShell.Core, C:\WINDOWS\system32\WindowsPowerShell\v1.0
> \types.ps1x
> ml(308) : Error in type "System.IO.FileInfo": Exception: Getter method
> should be
> public, non void, static, and have one parameter of type PSObject.
>
> ...and then the prompt appears. Is that expected and can I simply
> ignore it?
>
>
> Thorsten
A few others have reported seeing similar problems.

If you're not in a hurry to fix, and are willing to work with someone to
try to find a solution, email me: marco DOT shaw AT gmail DOT com

Hopefully we can find the issue for everyone's benefit.

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
 
Old 01-10-2008   #3 (permalink)
Thorsten Kampe
Guest
 
Posts: n/a

Re: Error when starting PS V2 CP

* Marco Shaw [MVP] (Thu, 10 Jan 2008 17:01:00 -0400)
Quote:

> Thorsten Kampe wrote:
Quote:

> > I've installed PS V2 (CP) on Windows XP Sp2. When running the shell I
> > always get these errors (in red):
> > [...]
> > ...and then the prompt appears. Is that expected and can I simply
> > ignore it?
> >
> >
> > Thorsten
>
> A few others have reported seeing similar problems.
>
> If you're not in a hurry to fix, and are willing to work with someone to
> try to find a solution, email me: marco DOT shaw AT gmail DOT com
Done

Thorsten
 
Old 01-11-2008   #4 (permalink)
RichS
Guest
 
Posts: n/a

Re: Error when starting PS V2 CP

Interestingly I have not seen these on XP, Windows 2003 or Windows 2008
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Thorsten Kampe" wrote:
Quote:

> * Marco Shaw [MVP] (Thu, 10 Jan 2008 17:01:00 -0400)
Quote:

> > Thorsten Kampe wrote:
Quote:

> > > I've installed PS V2 (CP) on Windows XP Sp2. When running the shell I
> > > always get these errors (in red):
> > > [...]
> > > ...and then the prompt appears. Is that expected and can I simply
> > > ignore it?
> > >
> > >
> > > Thorsten
> >
> > A few others have reported seeing similar problems.
> >
> > If you're not in a hurry to fix, and are willing to work with someone to
> > try to find a solution, email me: marco DOT shaw AT gmail DOT com
>
> Done
>
> Thorsten
>
 
Old 01-11-2008   #5 (permalink)
Marco Shaw [MVP]
Guest
 
Posts: n/a

Re: Error when starting PS V2 CP

RichS wrote:
Quote:

> Interestingly I have not seen these on XP, Windows 2003 or Windows 2008
At least 3 more people reported this. Check the comments here:
http://blogs.msdn.com/powershell/arc...his-space.aspx

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
 
Old 01-11-2008   #6 (permalink)
RichS
Guest
 
Posts: n/a

Re: Error when starting PS V2 CP

Interesting -

Can those types actually be accessed even though an error is being reported.
Be also interested to know patching levels of .NET


--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Marco Shaw [MVP]" wrote:
Quote:

> RichS wrote:
Quote:

> > Interestingly I have not seen these on XP, Windows 2003 or Windows 2008
>
> At least 3 more people reported this. Check the comments here:
> http://blogs.msdn.com/powershell/arc...his-space.aspx
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>
 
Old 01-11-2008   #7 (permalink)
Marco Shaw [MVP]
Guest
 
Posts: n/a

Re: Error when starting PS V2 CP

RichS wrote:
Quote:

> Interesting -
>
> Can those types actually be accessed even though an error is being reported.
> Be also interested to know patching levels of .NET
>
>
I have one who has contacted me directly. He did have v1 on the system
previously.

I'll dig up something to test the types.

Is this a true test of the .NET version information?

PS C:\WINDOWS\Microsoft.NET\Framework> dir v*
Directory:
Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\Microsoft.NET\Framework
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 1/4/2008 12:18 AM v1.0.3705
d---- 1/4/2008 12:18 AM v1.1.4322
d---- 12/4/2007 9:59 PM v2.0.50727
d---- 4/30/2007 4:28 PM v3.0
d---- 8/9/2007 1:29 AM v3.5

I updated v.2 recently. That version above seems different, although I
can't remember for sure. The directory/version info must have changed
on reboot (if that's possible). I don't remember being asked to reboot
when I loaded a newer downloaded version.

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
 
Old 01-11-2008   #8 (permalink)
RichS
Guest
 
Posts: n/a

Re: Error when starting PS V2 CP

I match those version numbers. I'm not sure the folder name updates when the
particular version is patched
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Marco Shaw [MVP]" wrote:
Quote:

> RichS wrote:
Quote:

> > Interesting -
> >
> > Can those types actually be accessed even though an error is being reported.
> > Be also interested to know patching levels of .NET
> >
> >
>
> I have one who has contacted me directly. He did have v1 on the system
> previously.
>
> I'll dig up something to test the types.
>
> Is this a true test of the .NET version information?
>
> PS C:\WINDOWS\Microsoft.NET\Framework> dir v*
> Directory:
> Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\Microsoft.NET\Framework
> Mode LastWriteTime Length Name
> ---- ------------- ------ ----
> d---- 1/4/2008 12:18 AM v1.0.3705
> d---- 1/4/2008 12:18 AM v1.1.4322
> d---- 12/4/2007 9:59 PM v2.0.50727
> d---- 4/30/2007 4:28 PM v3.0
> d---- 8/9/2007 1:29 AM v3.5
>
> I updated v.2 recently. That version above seems different, although I
> can't remember for sure. The directory/version info must have changed
> on reboot (if that's possible). I don't remember being asked to reboot
> when I loaded a newer downloaded version.
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>
 
Old 01-12-2008   #9 (permalink)
Robert Aldwinckle
Guest
 
Posts: n/a

Re: Error when starting PS V2 CP

"Thorsten Kampe" <thorsten@xxxxxx> wrote in message
news:MPG.21f07aae3702ca01989935@xxxxxx
Quote:

> I've installed PS V2 (CP) on Windows XP Sp2. When running the shell I
> always get these errors (in red):

Running what? Just opening it the first time with no customization?

FWIW when I did that I got a series of security prompts which I eventually
disabled. Unfortunately I can't recall exactly what they said but it looked
as if I was getting one prompt per default script loaded.

Also, it may matter whether you have also installed (or tried to use)
the V2 Graphical shell. FWIW I had to install .NET 3.5 for that
and downloaded a beta version to do it. It was a bit of an adventure
getting that installed. I now understand some of the frustration
that some users complain about when installing .NET updates
but think I now am also in a better position to make suggestions
about making them work without resorting to some of the sledgehammer
repair suggestions that many people end up resorting to. ; )


Good luck

Robert Aldwinckle
---


 
Old 01-13-2008   #10 (permalink)
Marco Shaw [MVP]
Guest
 
Posts: n/a

Re: Error when starting PS V2 CP

Quote:

> Also, it may matter whether you have also installed (or tried to use)
> the V2 Graphical shell. FWIW I had to install .NET 3.5 for that
> and downloaded a beta version to do it. It was a bit of an adventure
> getting that installed. I now understand some of the frustration
> that some users complain about when installing .NET updates
> but think I now am also in a better position to make suggestions
> about making them work without resorting to some of the sledgehammer
> repair suggestions that many people end up resorting to. ; )
The v2 graphical editor requires .NET 3.0 likely because it utilises
some of the 3.0 extensions like WPF.

I found the 3.0 (and 3.5) install to be very easy personally, but agree
that some may have problems finding the installers.

Marco
 
 
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Starting Windows Mail Tezzer Vista mail 14 4 Weeks Ago 07:42 PM
RunDLL error when starting vista ninjascroll Vista General 3 05-10-2008 06:26 AM
error when starting up vampire bloodlines d vernon Gaming 1 02-18-2008 06:16 PM
HPQWMIEX.EXE error while starting Notebook Jagdish Vista security 1 02-05-2008 12:53 PM
Error Message, Starting ANY games Sunny:D Vista Games 0 03-20-2007 07:31 PM








Vistax64.com 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 2005-2008

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 47 48 49