Accessing DCOM object from VB.Net
Dear all,
I need to access a DCOM object from VB.Net (Visual Studio 2002). If i try this from a winform application it works fine, if i then implement the same code in a windows service it shows some strange behavior. The sub where the call to the DCOM object is done isn't executed, it is just skipping it and exiting the procedure where it was triggered without raising an error, even without errorhandling in this procedure:-). It is failing at the new statement (see code below). Does anyone have seen this before or even has a solution for this?
********** Code Example
Private Sub getTagValue
_ _ _ _ Dim objTags As New BPSDRIVERLib.Tags()
_ _ _ _ Dim objTag As BPSDRIVERLib.Tag
_ _ _ _ objTag = objTags.Item(TagName)
_ _ _ _ _ _TagValue = objTag.Value
End Function
********** End Code Example
Kind Regards,
Edwin Stoffels