Error while exciting initial AD Sync.

Hi Experts,

We are receiving below error whenever we are executing initial AD sync.

<x><w>2018-06-21 10:08:07 +00:00 - Warning: Starting queue \RemoteJobServer.<x>
<p>2018-06-21 10:11:07 +00:00 - \RemoteJobServer - Process step parameter 250e6882-a132-484c-88a4-a55294cf729e:
[Job]
ComponentAssembly=VI.Projector.JobComponent
ComponentClass=VI.Projector.JobComponent.ProjectorComponent
Task=FullProjection
Executiontype=EXTERNAL
[Parameters]
AuthenticationString=Hidden
ConnectionProvider=QBM.AppServer.Client.ServiceClientFactory, QBM.AppServer.Client
ConnectionString=Hidden
ProcID=d3fadf40-ae70-437a-b4a4-87372027ded9
UID_DPRProjectionStartInfo=CCC-8D495813878F5648BE9DED6D72E116FE

<x><e>2018-06-21 10:11:08 +00:00 - \RemoteJobServer - VI.Projector.JobComponent.ProjectorComponent - 250e6882-a132-484c-88a4-a55294cf729e: Errors occurred
[2134003] Error executing synchronization.
[2070000] Application server returned an error.
[2072000] An error occurred.
at StdioProcessor.StdioProcessor._Execute(Job job)
at VI.Projector.JobComponent.ProjectorComponent.Activate(String task)
at VI.Projector.JobComponent.ProjectorComponent._FullProjection()
---- Start of Inner Exception ----
at VI.Projector.JobComponent.ProjectorComponent._FullProjection()
at VI.Projector.JobComponent.ProjectorComponent.get_Session()
at VI.JobService.JobComponents.DbJobComponent.get_ConnectData()
at VI.JobService.JobComponents.DbJobComponent._ConnectToDatabase()
at VI.DB.Implementation.Connection.Authenticate(IAuthProps props)
at VI.Base.SyncActions.Do[T](Func`1 function)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
---- Start of Inner Exception ----
at VI.DB.Entities.SessionFactoryImpl.<OpenAsync>d__16.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.SessionFactoryImpl.<_OpenAsync>d__19.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.SessionFactoryImpl.<>c__DisplayClass16_0.<<OpenAsync>b__0>d.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at QBM.AppServer.Client.ServiceAuthenticator.<AuthenticateAsync>d__6.MoveNext()
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at QBM.AppServer.Client.AppServerClient.<PostAsync>d__15`1.MoveNext()
---- Start of Inner Exception ----

<x>

Please provide your guidance?

One IM 8.0

Thanks 

Parents
  • Hi,
    for security reasons the application server will not expose the full error message. You should have a look at the application server log for the real error message.

    Regards,
    Andreas

  • Hi Andreas,

    Below is the error in app logs.

    2018-06-21 10:11:08.3027 ERROR (ObjectLog ) : [810069] Error loading authentication module ComponentAuthenticator.
    [System.IO.FileNotFoundException] Could not load file or assembly 'JobComponent' or one of its dependencies. The system cannot find the file specified.
    System.AggregateException: One or more errors occurred. ---> VI.Base.ViException: Error loading authentication module ComponentAuthenticator. ---> System.IO.FileNotFoundException: Could not load file or assembly 'JobComponent' or one of its dependencies. The system cannot find the file specified.
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
    at System.Activator.CreateInstance(String assemblyName, String typeName)
    at System.AppDomain.CreateInstance(String assemblyName, String typeName)
    at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)
    at VI.DB.Auth.AuthModuleFactoryImpl.Create(IAuthModuleInfo moduleInfo)
    at VI.DB.Auth.DbAuthenticator.<_GetModuleAsync>d__13.MoveNext()
    --- End of inner exception stack trace ---
    at VI.DB.Auth.DbAuthenticator.<_GetModuleAsync>d__13.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Auth.DbAuthenticator.<AuthenticateAsync>d__10.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<>c__DisplayClass16_0.<<OpenAsync>b__0>d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<_OpenAsync>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<OpenAsync>d__16.MoveNext()
    --- End of inner exception stack trace ---
    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
    at VI.Base.SyncActions.Do[T](Func`1 function)
    at QBM.AppServer.Base.SessionAuthProvider.Authenticate(IServiceBase authService, IAuthSession session, Authenticate request)
    at ServiceStack.Auth.AuthenticateService.Authenticate(Authenticate request, String provider, IAuthSession session, IAuthProvider oAuthConfig)
    at ServiceStack.Auth.AuthenticateService.Post(Authenticate request)
    at ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)
    ---> (Inner Exception #0) VI.Base.ViException: Error loading authentication module ComponentAuthenticator. ---> System.IO.FileNotFoundException: Could not load file or assembly 'JobComponent' or one of its dependencies. The system cannot find the file specified.
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
    at System.Activator.CreateInstance(String assemblyName, String typeName)
    at System.AppDomain.CreateInstance(String assemblyName, String typeName)
    at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)
    at VI.DB.Auth.AuthModuleFactoryImpl.Create(IAuthModuleInfo moduleInfo)
    at VI.DB.Auth.DbAuthenticator.<_GetModuleAsync>d__13.MoveNext()
    --- End of inner exception stack trace ---
    at VI.DB.Auth.DbAuthenticator.<_GetModuleAsync>d__13.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Auth.DbAuthenticator.<AuthenticateAsync>d__10.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<>c__DisplayClass16_0.<<OpenAsync>b__0>d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<_OpenAsync>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<OpenAsync>d__16.MoveNext()<---
    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
    at VI.Base.SyncActions.Do[T](Func`1 function)
    at QBM.AppServer.Base.SessionAuthProvider.Authenticate(IServiceBase authService, IAuthSession session, Authenticate request)
    at ServiceStack.Auth.AuthenticateService.Authenticate(Authenticate request, String provider, IAuthSession session, IAuthProvider oAuthConfig)
    at ServiceStack.Auth.AuthenticateService.Post(Authenticate request)
    at ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)

Reply
  • Hi Andreas,

    Below is the error in app logs.

    2018-06-21 10:11:08.3027 ERROR (ObjectLog ) : [810069] Error loading authentication module ComponentAuthenticator.
    [System.IO.FileNotFoundException] Could not load file or assembly 'JobComponent' or one of its dependencies. The system cannot find the file specified.
    System.AggregateException: One or more errors occurred. ---> VI.Base.ViException: Error loading authentication module ComponentAuthenticator. ---> System.IO.FileNotFoundException: Could not load file or assembly 'JobComponent' or one of its dependencies. The system cannot find the file specified.
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
    at System.Activator.CreateInstance(String assemblyName, String typeName)
    at System.AppDomain.CreateInstance(String assemblyName, String typeName)
    at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)
    at VI.DB.Auth.AuthModuleFactoryImpl.Create(IAuthModuleInfo moduleInfo)
    at VI.DB.Auth.DbAuthenticator.<_GetModuleAsync>d__13.MoveNext()
    --- End of inner exception stack trace ---
    at VI.DB.Auth.DbAuthenticator.<_GetModuleAsync>d__13.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Auth.DbAuthenticator.<AuthenticateAsync>d__10.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<>c__DisplayClass16_0.<<OpenAsync>b__0>d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<_OpenAsync>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<OpenAsync>d__16.MoveNext()
    --- End of inner exception stack trace ---
    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
    at VI.Base.SyncActions.Do[T](Func`1 function)
    at QBM.AppServer.Base.SessionAuthProvider.Authenticate(IServiceBase authService, IAuthSession session, Authenticate request)
    at ServiceStack.Auth.AuthenticateService.Authenticate(Authenticate request, String provider, IAuthSession session, IAuthProvider oAuthConfig)
    at ServiceStack.Auth.AuthenticateService.Post(Authenticate request)
    at ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)
    ---> (Inner Exception #0) VI.Base.ViException: Error loading authentication module ComponentAuthenticator. ---> System.IO.FileNotFoundException: Could not load file or assembly 'JobComponent' or one of its dependencies. The system cannot find the file specified.
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
    at System.Activator.CreateInstance(String assemblyName, String typeName)
    at System.AppDomain.CreateInstance(String assemblyName, String typeName)
    at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)
    at VI.DB.Auth.AuthModuleFactoryImpl.Create(IAuthModuleInfo moduleInfo)
    at VI.DB.Auth.DbAuthenticator.<_GetModuleAsync>d__13.MoveNext()
    --- End of inner exception stack trace ---
    at VI.DB.Auth.DbAuthenticator.<_GetModuleAsync>d__13.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Auth.DbAuthenticator.<AuthenticateAsync>d__10.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<>c__DisplayClass16_0.<<OpenAsync>b__0>d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<_OpenAsync>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VI.DB.Entities.SessionFactoryImpl.<OpenAsync>d__16.MoveNext()<---
    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
    at VI.Base.SyncActions.Do[T](Func`1 function)
    at QBM.AppServer.Base.SessionAuthProvider.Authenticate(IServiceBase authService, IAuthSession session, Authenticate request)
    at ServiceStack.Auth.AuthenticateService.Authenticate(Authenticate request, String provider, IAuthSession session, IAuthProvider oAuthConfig)
    at ServiceStack.Auth.AuthenticateService.Post(Authenticate request)
    at ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)

Children