C#, COM Object, Reuters PLEASE HELP

I

ilyaw

Hi guys,
I have a problem trying to implement C# program which is working with
Reuters AdfinXRtLib library.
The program takes RICs from DataGrid control column, register them,
and returns "TIME" field.

Here is sample code. I take away all error handlers so it will not
take a lot of space here:

AdxRtList lst = new AdxRtList();

//Assign source - working fine, returns "RT_SOURCE_UP"
lst.Source = "xxx";

//Register RICS and Fields - working fine, returns TRUE on
lst.IsRegisteredItem method
foreach (DataGridViewRow gvrow in MyHBGridView.Rows)
{
lst.RegisterItems((object)gvrow.Cells[0].Value,
(object)"TIME");
}

//Starting updates - working fine, returns "RT_LIST_RUNNING" on
listStatus method
lst.StartUpdates(AdfinXRtLib.RT_RunMode.RT_MODE_IMAGE);

//fails here
foreach (DataGridViewRow gvrow in MyHBGridView.Rows)
{
Double RICTime = Convert.ToDouble(lst.get_Value
(gvrow.Cells[0].Value.ToString(), "TIME");
}

"ERROR #360f - AdxRtList : invalid item <1-st RIC in the list>"

Have to mention that it is working fine with ASP development server
but not workin on IIS failing to initialize COM object in AdxRtList
lst = new AdxRtList() line. I think it might be security issues. But
I'm admin on my machine and everything runs from local C drive so I
have no idea why Windows fails as IIS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

C#, COM problem 1

Top