Appears to be a timing issue.
Added,
System.Threadin g.Thread.Sleep( 4000)
before checking connection and it works.
User Profile
Collapse
-
This is the specofic error I get if I don't test isConnected.
System.Runtime. InteropServices .COMException: Session is not connected to host.
at PASSHIOLib.Ohio ScreenClass.get _String()
at Service.Image() in c:\inetpub\wwwr oot\HIOws2\App_ Code\ScreenStat us.vb:line 41Leave a comment:
-
The object I'm using doesn't have a user interface.
Its function is to provide a COM wrapper for a 3270 datastream from a mainframe session, (aka screen scraping)
My code is as follows;
<WebMethod()> _
Public Function Image() As String
Dim strConfigFile As String
Dim HIOsessions As PASSHIOLib.Ohio Sessions
Dim HIOsession As PASSHIOLib.Ohio Session...Leave a comment:
-
VB.Net web service referencing ActiveX dll
I am using an ActiveX dll that I have tested succesfully from a VB.net desktop application.
When I attempt to wrap the application in an ASP.Net web service I can't get it to function.
There are 2 potential issues.
1) Dll references a config file stored in the application directory.
2) DLL runs a telnet session on port 23 to a remote client
I guess these both have the potential to...
No activity results to display
Show More
Leave a comment: