locked
Site Data Web Service: (*** Value cannot be null. Parameter name: s) RRS feed

  • Question

  • Hello all,

    I keep getting this error in the crawler log "Site Data Web Service: (*** Value cannot be null. Parameter name: s)" when trying to crawl some pdf files.

    It is really strange because I can crawl some pdfs and others I keep getting the error.

    I already tried to recreate the SSP, update the ifilters, rebooted the server, etc.. and I still get the same errors.

    Any thoughts.

    Thanks for the help.

    Best Regards,

    André

    PS: Already posted another topic with a somehow related problem http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/bb0b134a-2b59-4db8-a9e2-e0a3085b1879

    Friday, May 4, 2012 7:44 PM

Answers

  • Hi arec,

    If you use Windows Authentication. Configure your SharePoint Sites, set the authentication model to Windows Authentication: Open the web.config file, specify the <authentication> element to <authentication mode="Windows" />:http://blogs.msdn.com/b/jjameson/archive/2009/11/09/configuring-ssl-on-sharepoint-sites.aspx.
    Then try to call the Web Service as following:
    Web_Reference_Name.SiteData srvSiteData = new Web_Reference_Name.SiteData();
    srvSiteData.Credentials = System.Net.CredentialCache.DefaultCredentials;
    srvSiteData.Url="http://<Site>/_vti_bin/SiteData.asmx" //
    string items = srvSiteData.GetListItems("{e5c6603b-0f6c-4bd9-8bb1-57c83854308b}",
        "<Where><Eq><FieldRef Name=\"Field\"/><Value Type=\"Number\">1450</Value></Eq></Where>",
        "<FieldRef Name=\"Title\"/><FieldRef Name=\"Number\"/>", 100);
    label1.Text = items;
    If you use the Form authentication, specify the <authentication> element as this: 
    <authentication mode="Forms">
          <forms loginUrl="/Public/Pages/default.aspx" defaultUrl="/" />
    </authentication>

    Then change the
    srvSiteData.Credentials = System.Net.CredentialCache.DefaultCredentials;
    to
    srvSiteData.Credentials=new CredentialCache().Add(url,string,new NetworkCredential(UserName,SecurelyStoredPassword));

    Thanks,
    Lhan Han
    Tuesday, May 8, 2012 9:23 AM
    Moderator

All replies

  • Hello all,

    Recent updated on this issue.

    I do not know if it is coincidence but the document library that is being crawled all the items have unique permissions. When I reset the permission the crawler is able to index the item. I can confirm that the unique permission items can be accessed by the SSP account.

    Any thoughts,

    Best Regards,

    André

    Saturday, May 5, 2012 4:16 PM
  • Hi arec,

    If you use Windows Authentication. Configure your SharePoint Sites, set the authentication model to Windows Authentication: Open the web.config file, specify the <authentication> element to <authentication mode="Windows" />:http://blogs.msdn.com/b/jjameson/archive/2009/11/09/configuring-ssl-on-sharepoint-sites.aspx.
    Then try to call the Web Service as following:
    Web_Reference_Name.SiteData srvSiteData = new Web_Reference_Name.SiteData();
    srvSiteData.Credentials = System.Net.CredentialCache.DefaultCredentials;
    srvSiteData.Url="http://<Site>/_vti_bin/SiteData.asmx" //
    string items = srvSiteData.GetListItems("{e5c6603b-0f6c-4bd9-8bb1-57c83854308b}",
        "<Where><Eq><FieldRef Name=\"Field\"/><Value Type=\"Number\">1450</Value></Eq></Where>",
        "<FieldRef Name=\"Title\"/><FieldRef Name=\"Number\"/>", 100);
    label1.Text = items;
    If you use the Form authentication, specify the <authentication> element as this: 
    <authentication mode="Forms">
          <forms loginUrl="/Public/Pages/default.aspx" defaultUrl="/" />
    </authentication>

    Then change the
    srvSiteData.Credentials = System.Net.CredentialCache.DefaultCredentials;
    to
    srvSiteData.Credentials=new CredentialCache().Add(url,string,new NetworkCredential(UserName,SecurelyStoredPassword));

    Thanks,
    Lhan Han
    Tuesday, May 8, 2012 9:23 AM
    Moderator