...#39; error while trying to request for authentication session token
Getting below stack trace intermittently while trying to authenticate
POST https://selectapi.datascope.refinitiv.com/RestApi/v1/Authentication/RequestToken
<!DOCTYPE html>
<html>
<head>
<title>Could not load file or assembly 'AutoMapper, Version=4.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. Access is denied.</title>
<meta name="viewport" content="width=device-width" />
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
@media screen and (max-width: 639px) {
pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
}
@media screen and (max-width: 479px) {
pre { width: 280px; }
}
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/RestApi' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>Could not load file or assembly 'AutoMapper, Version=4.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. Access is denied.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
<br><br>
<b> Exception Details: </b>System.IO.FileLoadException: Could not load file or assembly 'AutoMapper, Version=4.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. Access is denied.<br><br>
<b>Source Error:</b> <br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code>
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>
</td>
</tr>
</table>
<br>
<b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'AutoMapper, Version=4.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' could not be loaded.<br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
</pre></code>
</td>
</tr>
</table>
<br>
<b>Stack Trace:</b> <br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
[FileLoadException: Could not load file or assembly 'AutoMapper, Version=4.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. Access is denied.]
DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository..cctor() +0
[TypeInitializationException: The type initializer for 'DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository' threw an exception.]
DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository..ctor(IDatabaseProvider databaseProvider, Func`1 principalFactory) +0
lambda_method(Closure , Object[] ) +138
Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +270
[DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(DataScope.Select.Core.Database.IDatabaseProvider, System.Func`1[DataScope.Select.Core.Security.IDssPrincipal])' on type 'UserClaimRepository'. ---> The type initializer for 'DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository' threw an exception. (See inner exception for details.)]
Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +734
Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +272
Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +86
Autofac.Core.Resolving.InstanceLookup.Execute() +63
Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +171
Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +108
Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +122
Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) +70
DataScope.Select.Library.Autofac.AutofacDependencyResolver.<iSynaptic.Commons.IDependencyResolver.TryResolve>b__4_5(IDependencySymbol x) +122
iSynaptic.Commons.<>c__DisplayClass77`2.<Select>b__76() +214
iSynaptic.Commons.<>c__DisplayClass1.<.ctor>b__0() +72
iSynaptic.Commons.Maybe`1.get_HasValue() +60
iSynaptic.Commons.<>c__DisplayClass95`1.<OnException>b__94() +94
[IocResolutionException: Could not resolve type 'DataScope.Select.Users.IUserClaimRepository']
DataScope.Select.Library.Autofac.AutofacDependencyResolver.ResolveFailed(Exception e, Type dependencyType, String namedDependencyPossiblyNull) +226
iSynaptic.Commons.<>c__DisplayClass95`1.<OnException>b__94() +213
iSynaptic.Commons.<>c__DisplayClass1.<.ctor>b__0() +72
iSynaptic.Commons.Maybe`1.get_HasValue() +60
iSynaptic.Commons.Maybe`1.get_HasValue() +73
iSynaptic.Commons.DependencyResolverExtensions.Resolve(IDependencyResolver resolver) +191
DataScope.Select.RestApi.MvcApplication.After_Application_Start() +29
DataScope.Select.Core.RestApi.Host.RestApiApplication.Application_Start() +1650
[HttpException (0x80004005): Could not resolve type 'DataScope.Select.Users.IUserClaimRepository']
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +520
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +176
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +165
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +267
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +341
[HttpException (0x80004005): Could not resolve type 'DataScope.Select.Users.IUserClaimRepository']
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +523
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +107
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +688
</pre></code>
</td>
</tr>
</table>
<br>
<hr width=100% size=1 color=silver>
<b>Version Information:</b> Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3770.0
</font>
</body>
</html>
<!--
[FileLoadException]: Could not load file or assembly 'AutoMapper, Version=4.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. Access is denied.
at DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository..cctor()
[TypeInitializationException]: The type initializer for 'DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository' threw an exception.
at DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository..ctor(IDatabaseProvider databaseProvider, Func`1 principalFactory)
at lambda_method(Closure , Object[] )
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
[DependencyResolutionException]: An exception was thrown while invoking the constructor 'Void .ctor(DataScope.Select.Core.Database.IDatabaseProvider, System.Func`1[DataScope.Select.Core.Security.IDssPrincipal])' on type 'UserClaimRepository'. ---> The type initializer for 'DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository' threw an exception. (See inner exception for details.)
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at DataScope.Select.Library.Autofac.AutofacDependencyResolver.<iSynaptic.Commons.IDependencyResolver.TryResolve>b__4_5(IDependencySymbol x)
at iSynaptic.Commons.Maybe.<>c__DisplayClass77`2.<Select>b__76()
at iSynaptic.Commons.Maybe`1.<>c__DisplayClass1.<.ctor>b__0()
at iSynaptic.Commons.Maybe`1.get_HasValue()
at iSynaptic.Commons.Maybe.<>c__DisplayClass95`1.<OnException>b__94()
[IocResolutionException]: Could not resolve type 'DataScope.Select.Users.IUserClaimRepository'
at DataScope.Select.Library.Autofac.AutofacDependencyResolver.ResolveFailed(Exception e, Type dependencyType, String namedDependencyPossiblyNull)
at iSynaptic.Commons.Maybe.<>c__DisplayClass95`1.<OnException>b__94()
at iSynaptic.Commons.Maybe`1.<>c__DisplayClass1.<.ctor>b__0()
at iSynaptic.Commons.Maybe`1.get_HasValue()
at iSynaptic.Commons.Maybe`1.get_HasValue()
at iSynaptic.Commons.DependencyResolverExtensions.Resolve[T](IDependencyResolver resolver)
at DataScope.Select.RestApi.MvcApplication.After_Application_Start()
at DataScope.Select.Core.RestApi.Host.RestApiApplication.Application_Start()
[HttpException]: Could not resolve type 'DataScope.Select.Users.IUserClaimRepository'
at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
[HttpException]: Could not resolve type 'DataScope.Select.Users.IUserClaimRepository'
at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
--><!--
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1113)
at com.scb.cat.equity.refinitiv.core.dss.AbstractHttpClient.postWithJsonPayload(AbstractHttpClient.java:70)
at com.scb.cat.equity.refinitiv.core.dss.AbstractHttpClient.postWithJsonPayload(AbstractHttpClient.java:55)
at com.scb.cat.equity.refinitiv.core.dss.RefinitivHttpClient.authenticate(RefinitivHttpClient.java:52)
at com.scb.cat.equity.refinitiv.core.dss.RefinitivHttpClient.authenticate(RefinitivHttpClient.java:45)
at com.scb.cat.equity.refinitiv.core.dss.RefinitivHttpClient.<init>(RefinitivHttpClient.java:36)
at com.scb.cat.equity.refinitiv.core.dss.RefinitivHttpClient$$FastClassByGuice$$25b796d0.newInstance(<generated>)
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:52)
at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:147)
at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:101)
at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:71)
... 27 more