Getting [HttpException]: Could not resolve type 'DataScope.Select.Users.IUserClaimRepository&...

...#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
Best Answer
-
Hello @avadhesh.gadia,
There are no recent Datascope service changes/releases that I am aware of.
However, there are many Datascope service disruptions that have taken place yesterday, and some are still being actively addressed today, as I observe from
My Refinitiv -> Service Alerts
If the issue was intermittent and you do not observe it today, I suggest to give it some time, continuing testing and observing, to verify if this was the root cause?
0
Answers
-
Hello @avadhesh.gadia,
Could you please confirm if you continue seeing this issue and if it remains intermittent on your side?
I have just tried multiple authentication requests to selectapi.datascope.refinitiv.com via Postman, and did not reproduce the issue at this time.
If the issue persists on your side, could you please verify authentication using request from Postman Starter Example Deck -> Tuto-1a: User authentication,
And let us know how it works for you?
Thanks
0 -
Hi @zoya faberov,
I am trying to create the request in a Java application and it similar to the request in Postman. I am using my trial account(Not sure if the issue was because of the trial account)
I have observed the issue when trying to make connections in test cases where several connections are made in quick succession. Some of the connections were resulting in this error.
However, I am not noticing the error today. Do you know if something has changed today as compared to yesterday?
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 24 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 713 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛