Ausnahme beim aufrufen von "GetList" mit "1" argument

Ich bin immer folgende exception, wenn ich versuchte, Sie zu GetList:

Exception calling "GetList" with "1" argument(s): "<nativehr>0x80070002</nativehr><nativestack></nativestack>"
At C:\Scripts\teaCvProfileUpdate\uploadTeaCvsToSharepoint.ps1:37 char:36
+ $cvDocumentLibrary = $spWeb.GetList <<<< ("/people/User Resumes/Forms/")
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

Diese sind die relavent 3 Zeilen code (powershell):

$spSite = Get-SPSite $mySiteUrl
$spWeb = $spSite.OpenWeb("/")
$cvDocumentLibrary = $spWeb.GetList("/people/User Resumes/Forms/")

Kann jemand mir sagen, warum dies passiert ist?

Dank. 🙂

Die Fehlermeldung ist nicht sehr hilfreich. Was bedeutet dies für Sie tun? Get-SPSite -Identity http://SPServer | Get-SPWeb ?
Andy, das gibt eine Liste von URLs.

InformationsquelleAutor | 2012-02-08

Schreibe einen Kommentar