Dear Sir/Madam
I made one user control using C#(.NET Runtime is 1.1). It is embeded in Internet Explorer
Basically, this control is very similiar to FTP client program. So it should be connecte
to FTP server.
First of all, I have granted full trust for security. So it is not related with an
security reason at all
I tried to make code to connect to FTP server in the control
However, it always takes exactly 100s to establish connection with the server
It is so long long long time, isn't it?.. Once I made one connection, next connectio
is established immediately. I really don't know why it always exactly takes 100s whe
connection is established first-time.
Of course, if I tested this same code in the normal windows form, there is no performance
problem at all..In other words, the connection is established immediately
If you have any ideas, please please let know why, and how I can work around this problem
Here is some code.
Start method is called to make connection to the FTP Server
public void Start()
AsyncCallback callback = new AsyncCallback(C onnectionEstabl ished)
this.BeginLogin (callback)
private delegate void LoginCallback()
public System.IAsyncRe sult BeginLogin( System.AsyncCal lback callback
LoginCallback ftpCallback = new LoginCallback(t his.Login)
return ftpCallback.Beg inInvoke(callba ck, null)
private void OpenConnection( IAsyncResult result
if(result.IsCom pleted)
MessageBox.Show ("Connection is established!")
}
private void Login()
...
..
ftp.Connect("se rveraddress","p ort","uname","p assword")
String currentDir = ftp.GetCurrentD irectory()
..
.. 0 1553 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Miran Kopmajer |
last post by:
I have Oracle JDeveloper10g installed on my computer and connection to
Oracle AS works fine but connection to database returns
Io exception: The Network Adapter could not establish the connection
Vendor Code 17002
How to establish the connection to database?
Can anybody help me?
Thanks
|
by: gaffar |
last post by:
Sir,
I am developing an application in vb.net and the backend database is
ms-access. i have created ms-access databse and tables and assigned primary
keys to the
tables through the vb.net application(code is below). Now my problem is i
want delete one record from master table, that deleted record automatically
deleted from
|
by: TJ |
last post by:
Dear Sir/Madam
I made one user control using C#(.NET Runtime is 1.1). It is embeded in Internet Explorer
Basically, this control is very similiar to FTP client program. So it should be connecte
to FTP server.
First of all, I have granted full trust for security. So it is not related with an
security reason at all
I tried to make code to connect to FTP server in the control
However, it always takes exactly 100s to establish connection...
|
by: Randy |
last post by:
Hello,
I've got a Windows client app which hits a web service. The web service
works fine unless I'm outside the firewall using a VPN connection. I know my
VPN connection is working fine because I can ping machines and hit web pages
on the internal network.
With my VPN connection up and running when I try and hit the web service
through C# with a...
stream = new StringReader(webSrv.MyService(query));
|
by: Bill |
last post by:
I'm running a C#.Net application that is using the HttpWebRequest to upload
an xml file to a https site with FIPS complicancy turned on. On the
"GetRequestStream()" method I get:
"The underlying connection was closed: Could not establish secure channel
for SSL/TLS."
With FIPS turned on the secure website, only a FIPS compliant protocol can
be used. Since SSL is not FIPS compliant then only TLS can be used.
Unfortunately, this protocol...
| |
by: konsu |
last post by:
hello,
my client code communicates with a web service through a https connection.
the code has a stub derived from SoapHttpClientProtocol. It also sets a
certificate policy handler that allows everything:
class CertificatePolicy : ICertificatePolicy
{
public bool CheckValidationResult(ServicePoint servicepoint,
X509Certificate certificate, WebRequest request, int problem) { return
|
by: gaffar |
last post by:
Sir,
I am developing an application in vb.net and the backend database is
ms-access. i have created ms-access databse and tables and assigned primary
keys to the
tables through the vb.net application(code is below). Now my problem is i
want delete one record from master table, that deleted record automatically
deleted from
|
by: TJ |
last post by:
Dear Sir/Madam
I made one user control using C#(.NET Runtime is 1.1). It is embeded in Internet Explorer
Basically, this control is very similiar to FTP client program. So it should be connecte
to FTP server.
First of all, I have granted full trust for security. So it is not related with an
security reason at all
I tried to make code to connect to FTP server in the control
However, it always takes exactly 100s to establish connection...
|
by: Joel Barsotti |
last post by:
I'm working on shipping rate calculator going back and forth via XML. The
thing I'm confused about is that the code works, but after a few hours and I
don't know how many requests, I start getting the error "The underlying
connection was closed: Could not establish trust relationship for the
SSL/TLS secure channel." I can't imagine UPS's certificate is bad.
Here's my code, let me know if you see any glaring issues.
HttpWebRequest myReq...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |