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.
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.