locked
Profile Import Service Problem RRS feed

  • Question

  • Hello,

    I am having problems with the SharePoint Profile Import and some related components.  Can someone please help?  The code below throws an exception and the import is not updating the profiles.

    var config = new UserProfileConfigManager(ServerContext.GetContext(m_provider));
    
    var connection = config.GetDataSource()[m_source] as LDAPConnection;

    Here is the error information:

    An exception of type 'Microsoft.Office.Server.UserProfiles.UserProfileException' occurred and was caught.
    ---------------------------------------------------------------------------------------------------------
    09/29/2011 13:31:48
    Type: Microsoft.Office.Server.UserProfiles.UserProfileException, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
    Source: Microsoft.Office.Server
    Help link:
    Message : Failed to load import account information.
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Void _LoadAuthentication()
    Stack Trace :    at Microsoft.Office.Server.UserProfiles.DataSource._LoadAuthentication()
       at Microsoft.Office.Server.UserProfiles.DataSource._LoadDataSourceDef(String strDSName)
       at Microsoft.Office.Server.UserProfiles.DataSource..ctor(SRPSite site, Boolean fAllowEveryoneRead)
       at Microsoft.Office.Server.UserProfiles.DataSource..ctor(SRPSite site)
       at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.GetDataSource()
       at CompanyName.Profiles.SharePointRepository.GetSettings() in C:\Users\george.olson\Desktop\CompanyName.Profiles\CompanyName.Profiles\CompanyName.Profiles\SharePointRepository.cs:line 25
       at CompanyName.Profiles.Program.Main() in C:\Users\george.olson\Desktop\CompanyName.Profiles\CompanyName.Profiles\CompanyName.Profiles\Program.cs:line 34

    Additional Info:
        MachineName : Machine Name

       TimeStamp : 9/29/2011 8:31:48 PM

        FullName : CompanyName.Profiles, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

        AppDomainName : CompanyName.Profiles.exe
    ThreadIdentity :
       
    WindowsIdentity : CompanyName\svcharepoint
     
        Inner Exception
     ---------------
     Type: System.Net.WebException, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
     Source: Microsoft.Office.Server.Search
     Help link:
     Status : TrustFailure
     Response :
     Message : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
     Data : System.Collections.ListDictionaryInternal
     TargetSite : T RunOnServer[T](CodeToRun`1, CodeToRun`1, Boolean, Int32)
     Stack Trace :    at Microsoft.Office.Server.Search.Administration.SearchApi.RunOnServer[T](CodeToRun`1 remoteCode, CodeToRun`1 localCode, Boolean useCurrentSecurityContext, Int32 versionIn)
        at Microsoft.Office.Server.Search.Administration.SearchApi..ctor(WellKnownSearchCatalogs catalog, SearchSharedApplication application)
        at Microsoft.Office.Server.UserProfiles.DataSource._LoadAuthentication()

      Inner Exception
      ---------------
      Type: System.Security.Authentication.AuthenticationException, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
      Source: System
      Help link:
      Message : The remote certificate is invalid according to the validation procedure.
      Data : System.Collections.ListDictionaryInternal
      TargetSite : Void StartSendAuthResetSignal(System.Net.Security.ProtocolToken, System.Net.AsyncProtocolRequest, System.Exception)
      Stack Trace :    at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
         at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
         at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
         at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
         at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
         at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
         at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
         at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
         at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
         at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
         at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
         at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
         at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
         at System.Net.ConnectStream.WriteHeaders(Boolean async)

     Thanks,

    George


    • Edited by George Olson Thursday, September 29, 2011 8:39 PM
    Thursday, September 29, 2011 8:34 PM

Answers

  • It looks like the problem was an expired certificate on the index server's Office Server Web Services site.  This was strange however because there were no errors in the Profile Imort log.
    • Edited by George Olson Friday, September 30, 2011 3:39 PM
    • Marked as answer by George Olson Friday, September 30, 2011 3:39 PM
    Friday, September 30, 2011 3:38 PM