I am not calling any API functions.
I have a com object which is created in VB6.
Now we are trying to migrate to ASP.net. I am trying to use the same
code. I migrated the com object to .net. Trying to use it in the
ASP.net application. It is giving parameter incorrect error. I tried
using the same code which i used in ASP.net in VB.net for testing
purpose and it works fine.
My questions is why the COM object is not working in ASP.net when it is
working fine in VB.net?
Here is the code which I am using on the web form.
Inherits System.Windows.Forms.Form
Public fobjXtrac As XTRACCOM.XTRACApplication
Public pobjWI As XTRACCOM.XTRACWorkItem
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim str As String
Dim strWI As String
fobjXtrac = New XTRACCOM.XTRACApplication
pobjWI = fobjXtrac.GetActiveWorkItem(&HDEADBEEF, False)
str = (pobjWI.WorkItemID)
Label1.Text = str
End Sub
XTRACCOM is my COM object.
I am using the same code in a button click event in the VB.net
application.