Web (ASP.NET) Too Much Time (General questions)

by Fahad, (7197 days ago)

I am using u r component in my web project, the problem i am facing is that it is taking too much time to connect to server. I try to use WaitFor method and my own logic while loop to connect to server but its taking too much time to connect to server.

while(true){
if (Ssh1.State == WeOnlyDo.Client.SSH.States.Connected){
break
}

I just want to connect to server via Web, is their any thing u guy can doo to assist me.

P.S: I have the license to use for web

locked

Re: Web (ASP.NET) Too Much Time

by Jasmine, (7197 days ago) @ Fahad

Fahad,

did you set Blocking to True? Does it ever complete 'Connect' method call?

locked

Re: Web (ASP.NET) Too Much Time

by Fahad, (7193 days ago) @ Jasmine


did you set Blocking to True? Does it ever complete 'Connect' method call?

Yes, blocking is set to True and timeout property is 160. It does not complete Connect method call.

On making connection we are using a while loop in which we are checking the state of connection i.e ssh1.state property is connected or not as mentioned earlier. We also tried waitfor( $ ) method for the prompt to occur if its connected.

When we are exeuting our web application in debug mode it is successfully making the connection, however when are not using debugging mode it is taking too much time is connection cannot be established.

locked

Re: Web (ASP.NET) Too Much Time

by Jasmine, (7192 days ago) @ Fahad

Fahad,

I can't tell you what is wrong, I don't see your full code. There can be any number of things involved in this, and I just have too little information.

Can you please send complete code to techsupport@weonlydo.com, preferably allowing me to connect to same server as you.

locked

Re: Web (ASP.NET) Too Much Time

by Fahad, (7192 days ago) @ Jasmine


I can't tell you what is wrong, I don't see your full code. There can be any number of things involved in this, and I just have too little information.

Can you please send complete code to techsupport@weonlydo.com, preferably allowing me to connect to same server as you.

Well, I am mailing you the code, but I am afraid I can't provide you the Server because that is our Test Enviornment, Please arrange it at your end because I don't have permission(I apologies for that). I am mailing my full application to u on the said address in Zip format and the name of the file is Terminal Web.Zip and the Subject of my mail is Full Application Code .

Hoping for a positive reply from your side.

Fahad

locked

Re: Web (ASP.NET) Too Much Time

by Jasmine, (7192 days ago) @ Fahad

Fahad,

I see you set required properties, but in wrong place. You set them in 'establishedConnection' function, but what about in 'Button1_Click' that will actually make the connection? All I see there is: [code] Ssh1.Login = XXX ;
Ssh1.Password = XXX ;
Ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSHAuto;
Ssh1.Timeout = 60;
Ssh1.TempAuthorization = XXX ; // License Key 30 Days only
Ssh1.Connect( XXX );
[/code] and not Ssh1.Blocking = True.

Is that correct?

locked