Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
Question by Jesse Perrin · Sep 11, 2018 at 11:13 AM · 64 bitrfa 8.1rfa .net

RFA 8.1 .Net (64 bit) Session.Acquire("Session1") freezes when called from IIS worker process

This code works when executed as a command line application, but the call to Session.Acquire hangs when run from an IIS application. This issue affects v8.1.0.1. However, v7.x works correctly.

if (Context.Initialize() == false) throw new System.Exception("Failed to initialize RFA Context.");

cfgDataBase = ConfigDatabase.Acquire(new RFA_String("RFA")); if (cfgDataBase == null) throw new System.Exception("Failed to acquire RFA Config Database");

stgCfgDataBase = StagingConfigDatabase.Create(); if (stgCfgDataBase == null) throw new System.Exception("Failed to create RFA Staging Database");

var result = stgCfgDataBase.Load(ConfigRepositoryTypeEnum.flatFile, new RFA_String("./ElektronRFAConfig.cfg")); if (result == false) throw new System.Exception("Failed to load RFA Config Database");

result = cfgDataBase.Merge(stgCfgDataBase); if (result == false) throw new System.Exception("Failed to merge RFA Staging and Config Databases");

eventQueue = EventQueue.Create(new RFA_String("Queue1")); if (eventQueue == null) throw new System.Exception("Failed to create application event queue.");

session = Session.Acquire(new RFA_String("Session1"));

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by paulofogaca · Sep 11, 2018 at 12:46 PM

Hi

If already not set, try to put this inside your cfg file:

\Logger\AppLogger\useInternalLogStrings = true

Paulo.

Comment
jirapongse.phuriphanvichai

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by Jesse Perrin · Sep 11, 2018 at 01:09 PM

Hi Paulo,

That fixed it! Many thanks.

Jesse

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by GCMGold · Dec 18, 2019 at 07:01 PM

THANK YOU!!!!

I hate to admit this but I just spent a day and a half trying to figure out why an RFA application we've been using for almost 10 years all of the sudden stopped working when we tried to run it on a new server. I was going nuts making sure we had the appropriate VC++ redistributables, DACs ID settings, port numbers, and checking RFA settings out the wazoo. Not to mention the fact that I've been driving our Infrastructure and Reuters Admins nuts about ports being blocked and permissions not being set up properly. Looks like I'm going to be eating a nice slice of crow for dinner this evening!

@paulofogaca - if you don't mind would you please take a moment to explain the scenario that causes this and why adding that property to the config fixes it? There is little in the way of information in the RFA ConfigGuide. This is all the information we're given:

Logger\AppLogger\useInternalLogStrings

When enabled, uses log strings stored internally in RFA libraries or DLL’s. RFA[x]_MsgFile.dll (static) is not required when this option is enabled. Using this option will override windowsLoggerEnabled and not log events

** Reference: App Logger Fields in RFA Config Guide (Table 12)

I've searched online and from what I've been able to gather, it seems the RFA session object is looking for a user setting in the registry, but the path does not exist because the service account has never logged in to the server. Is this correct? If so, is it possible for Reuters to do something like throw an exception or exit when trying to acquire the session (as opposed to sitting there indefinitely and providing absolutely no detail at all)? I imagine it's probably a one-liner, along the lines of the following:

if (registry.Exists(path) == false) return;

In any event, thank you @Jesse_Perrin and @paulofogaca for providing a question and answer to this problem. Oh, and for helping me keep my sanity! :)

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by moragodkrit.chumsri_1 · Dec 19, 2019 at 01:50 AM

@GCMGold

Based on the solution provided by paolo, I guess that the original issue relates to the RFA Exception thrown from RFA internal when it unable to locates the RFA Component Logger files. It looks like the user does not deploy the RFA message files in the same folder as they set in the original server.

As far as I know, running the app under IIS, the running directory is the difference from running stand-alone WPF or console app so that you might need to deploy the RFA.NET message files which are RFA DLLs in the Windows system directory or set the relative or absolute path in RFA Component Logger config instead. Please find details about the RFA component logger in RFA.NET Configuration file section 2.4.2 Component Loggers. And you also can find the details about the RFA logger in the RFA.NET Developer guide section. 10.2.1 Configuring the Logger Package.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

RFA .Net Upgrade from 7.5 to 8.1 - Guidelines/details/pointers please!

Get information for refresh message for not defined field in ticker

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges