For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 2 2 2

Getting [HttpException]: Could not resolve type 'DataScope.Select.Users.IUserClaimRepository' 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 &#39;AutoMapper, Version=4.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005&#39; or one of its dependencies. Access is denied.]
   DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository..cctor() +0

[TypeInitializationException: The type initializer for &#39;DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository&#39; 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 &#39;Void .ctor(DataScope.Select.Core.Database.IDatabaseProvider, System.Func`1[DataScope.Select.Core.Security.IDssPrincipal])&#39; on type &#39;UserClaimRepository&#39;. ---&gt; The type initializer for &#39;DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository&#39; 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&amp; instance) +122
   Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) +70
   DataScope.Select.Library.Autofac.AutofacDependencyResolver.&lt;iSynaptic.Commons.IDependencyResolver.TryResolve&gt;b__4_5(IDependencySymbol x) +122
   iSynaptic.Commons.&lt;&gt;c__DisplayClass77`2.&lt;Select&gt;b__76() +214
   iSynaptic.Commons.&lt;&gt;c__DisplayClass1.&lt;.ctor&gt;b__0() +72
   iSynaptic.Commons.Maybe`1.get_HasValue() +60
   iSynaptic.Commons.&lt;&gt;c__DisplayClass95`1.&lt;OnException&gt;b__94() +94

[IocResolutionException: Could not resolve type &#39;DataScope.Select.Users.IUserClaimRepository&#39;]
   DataScope.Select.Library.Autofac.AutofacDependencyResolver.ResolveFailed(Exception e, Type dependencyType, String namedDependencyPossiblyNull) +226
   iSynaptic.Commons.&lt;&gt;c__DisplayClass95`1.&lt;OnException&gt;b__94() +213
   iSynaptic.Commons.&lt;&gt;c__DisplayClass1.&lt;.ctor&gt;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 &#39;DataScope.Select.Users.IUserClaimRepository&#39;]
   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 &#39;DataScope.Select.Users.IUserClaimRepository&#39;]
   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>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3770.0

            </font>

    </body>
</html>
<!-- 
[FileLoadException]: Could not load file or assembly &#39;AutoMapper, Version=4.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005&#39; or one of its dependencies. Access is denied.
   at DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository..cctor()
[TypeInitializationException]: The type initializer for &#39;DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository&#39; 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 &#39;Void .ctor(DataScope.Select.Core.Database.IDatabaseProvider, System.Func`1[DataScope.Select.Core.Security.IDssPrincipal])&#39; on type &#39;UserClaimRepository&#39;. ---&gt; The type initializer for &#39;DataScope.Select2.DataLayer.Entity.Users.UserClaimRepository&#39; 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 &#39;DataScope.Select.Users.IUserClaimRepository&#39;
   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 &#39;DataScope.Select.Users.IUserClaimRepository&#39;
   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 &#39;DataScope.Select.Users.IUserClaimRepository&#39;
   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 &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; 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
dss-rest-apidssdatascope-selectauthentication
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

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

Hi @zoya.farberov,

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?

1 Answer

Upvotes
Accepted
29k 33 11 15

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?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.