Hi everbody,
I'm using a thrid party COM dll. I've tested it in a VB.NET windows application and it works fine.
However, I need to use it in a ASP.NET application and when I do that I get either 'Interop.TimeSeries : Catastrophic failure' or 'WebApplication2 : Object reference not set to an instance of an object.' when I create the object.
I have tried setting the ASPNET, IUSR_MyPCName and IWAM_MyPCName to administrators - but it did not make any difference.
Any clues will be very welcoam, as I am stuck....
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
I'm using a thrid party COM dll. I've tested it in a VB.NET windows application and it works fine.
However, I need to use it in a ASP.NET application and when I do that I get either 'Interop.TimeSeries : Catastrophic failure' or 'WebApplication2 : Object reference not set to an instance of an object.' when I create the object.
I have tried setting the ASPNET, IUSR_MyPCName and IWAM_MyPCName to administrators - but it did not make any difference.
Any clues will be very welcoam, as I am stuck....
Code:
Dim TS As TimeSeries.TSObject
TS = New TimeSeries.TSObject 'here I get "Object reference not set to an instance of an object"
TS.Connection.Bridge = "DIMS Timeseries Bridge"
TS.Connection.FilePath = "Provider=SQLOLEDB.1;password=peterplys;Persist Security Info=False;user ID=dimsc;Initial Catalog=XDisp;data source=dataman"
TS.Connection.UserName = "master"
TS.Connection.UserPassword = "fnyt"
TS.Connection.Specification = "shortname=GLBBEac01, STARTTIME=38596,ENDTIME=38627, QUALITY=ACTIVATED"
TS.Connection.Open() 'here I get "Catastrophic failure"
TS.Connection.Bridge = "dfs Timeseries Bridge"
TS.Connection.FilePath = "c:\TSTest.dfs0"
TS.Item(1).DataType = TimeSeries.ItemDataType.Type_Float
TS.Item(1).Name = "Mylegend"
TS.Connection.Save()
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'