EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElHTTPSClient.GET(localhost) - Connection lost (error code is 100353)

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#36096
Posted: 03/01/2016 06:41:14
by Oleg Toyter (Standard support level)
Joined: 03/01/2016
Posts: 18

One more thing, i just ran the compiled code on another machine and it works.
So it must be something on my box only.
#36097
Posted: 03/01/2016 06:45:31
by Ken Ivanov (EldoS Corp.)

Oleg,

I believe there are two possible reasons for the problem on your box:

1) A firewall blocking the connection.

2) Some peculiarity in IIS configuration which makes it reject connection from your app.

BTW, when you ran your code on a different machine, did you connect to the IIS on your box or on that other machine?

What you can try is switching HTTP version to hvHTTP11 and checking if it helps.

Ken
#36098
Posted: 03/01/2016 06:51:55
by Oleg Toyter (Standard support level)
Joined: 03/01/2016
Posts: 18

I have firewall disabled.
I also tried switching between HTTP versions.

On other machine i connected to localhost.
#36099
Posted: 03/01/2016 07:01:41
by Ken Ivanov (EldoS Corp.)

Hmm, that's weird.

Could you please check if the following code throws the same exception on your box:

Code
SBSocket.TElSocket socket = new SBSocket.TElSocket();
socket.Address = "127.0.0.1";
socket.Port = 80;
socket.Connect(2000);
socket.Close(true);


Ken
#36100
Posted: 03/01/2016 07:03:46
by Oleg Toyter (Standard support level)
Joined: 03/01/2016
Posts: 18

This code works fine.
#36101
Posted: 03/01/2016 07:22:14
by Ken Ivanov (EldoS Corp.)

Right, so the problem must have something to do with the data provided in the request. The easiest place to start with would be to look into the IIS log and check for any errors reported there.

BTW, does the sample app (C# HTTPGet) expose the same issue?

Ken
#36102
Posted: 03/01/2016 07:44:34
by Oleg Toyter (Standard support level)
Joined: 03/01/2016
Posts: 18

There are no errors in IIS log.

I'm using the HTTPGet application as a skeleton.
#36103
Posted: 03/01/2016 07:55:44
by Oleg Toyter (Standard support level)
Joined: 03/01/2016
Posts: 18

I can provide a TeamViewer connection for you to check the problem firsthand.
#36104
Posted: 03/01/2016 08:03:28
by Ken Ivanov (EldoS Corp.)

It's great that you are able to offer the TeamViewer option. We will surely resort to it if the below check fails.

Could you please try setting SocketTimeout to a larger value (20000 will do) and check if you are able to connect in that way?

Ken
#36105
Posted: 03/01/2016 08:13:43
by Oleg Toyter (Standard support level)
Joined: 03/01/2016
Posts: 18

Same same...
The error appears almost immediately anyway.

See my code please:

Code
SBUtils.Unit.SetLicenseKey("...");

var client = new TElHTTPSClient();
client.OnCertificateValidate += new SBSSLCommon.TSBCertificateValidateEvent(client_OnCertificateValidate);
client.OnError += new SBSSLCommon.TSBErrorEvent(client_OnError);
client.SocketTimeout = 20000;

try
{
   client.Get("http://localhost");

   MessageBox.Show("OK");
}
catch ( Exception ex )
{
   MessageBox.Show(ex.Message);
}
finally
{
   client.Close(true);
}


BTW, neither event gets fired.
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

Topic viewed 5456 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!