hi,
we have developed one application.Tha t will download a zip file from ftp to enduser machine,,,
For download a file from ftp ..we are using "Wininet API" to download
But its not working
1.Ftp is connecting
2.its Locating the target folder tooo
but its not downloading the file to localmachine...
The error " I/O error Occured"
we have 25 users on it....it working them
but we installed for one user it not working
1, we have given permissions to local machine...
2. the enduser netspeed is fine...
3.we can copy the file from ftp to localmachine... but its working fine...
Can anybody give me solution for this??
Thanks in advance
Regards,
Mani
4 11040 maxamis4 295
Recognized Expert Contributor
What are the differences from this users machine in comparison to the other users using it?
More details please
Browser types
Hoxfixes deployed
software installed
this items make a difference.
hi,
That user has Laptop...
1.Operating System is WinXp
2.Browser : IE 6.0 , Opera (at first user had,But we asked to uninstall that.)
3.Antivirus : EScan
4.Internet Connection : BSNL Broadband 750 UL Plan
One information.... ..usally if the user has Mozilla firefox as Web browser.it will not work.. we always to uninstall the mozilla firefox.
We had asked the user the reinstall the OS...
And then we tested our software the file movement is not worked.
At first she had the Vista as OS and we have some other issues in her system... so we had ask her to change OS to WinXp
She has installed the WinXp OS as pirated version...
With Regards,
Mani
maxamis4 295
Recognized Expert Contributor
What type of code is the app written in? More curísoity than añy thing else. Alos i want to confirm the other usérs are working right? What is there configuratíon.
hi,
this is code we are using to download a file from ftp
public bool fnWinInetDownlo ad(string strFTPAddress, string strFTPUserName, string strFTPPassword, string strFTPDirectory , string strFTPDownloadF ileName, string strLocalFileNam ePath)
{
IntPtr inetHandle = IntPtr.Zero;
IntPtr ftpconnectHandl e = IntPtr.Zero;
try
{
//check for inet connection
if (__InternetAtte mptConnect(0) != ERROR_SUCCESS)
{
fnMessageHeader ("No connection to Internet available! Please Check!!", 1);
return false;
}
//connect to inet
inetHandle = __InternetOpen(
"billyboy FTP", INTERNET_OPEN_T YPE_DIRECT, null, null, 0);
if (inetHandle == IntPtr.Zero)
{
fnMessageHeader ("Couldn't establish a connection to the Internet! Please Check!!", 1);
return false;
}
//connect to ftp
ftpconnectHandl e = __InternetConne ct(inetHandle, strFTPAddress, 21, strFTPUserName, strFTPPassword,
INTERNET_SERVIC E_FTP, 0, 0);
if (ftpconnectHand le == IntPtr.Zero)
{
fnMessageHeader ("Couldn't connect to FTP! Please Check Internet Connection!!", 1);
return false;
}
//set to desired directory on FTP server
if (! __FtpSetCurrent Directory(ftpco nnectHandle, strFTPDirectory ))
{
fnMessageHeader ("Couldn't set to desired Directory! Please Check FTP Directory Exists!!", 1);
return false;
}
//download file from server
if (! __FtpGetFile(ft pconnectHandle, strFTPDownloadF ileName, strLocalFileNam ePath, false, 0, 0, 0))
return false;
else
return true;
}
catch(Exception ex)
{
throw ex;
}
finally
{
//close connection to ftp
if (ftpconnectHand le != IntPtr.Zero)
__InternetClose Handle(ftpconne ctHandle);
ftpconnectHandl e = IntPtr.Zero;
//close connection to inet
if (inetHandle != IntPtr.Zero)
__InternetClose Handle(inetHand le);
inetHandle = IntPtr.Zero;
}
}
Regards,
Mani
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Yongsub Eric Shin |
last post by:
Hi. I'm just a beginner in ASP.Net.
I started writing codes and I keep on getting this Runtime
Error page, where it says
"Description: An application error occurred on the server.
The current custom error settings for this application
prevent the details of the application error from being
viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.
|
by: Alphonse Giambrone |
last post by:
I am trying to develop a web service to accept a file uploaded via http post
from a vba (Access) application.
Thanks to helpful links in a vb newsgroup and my previous work with WinInet
api I was able to write the code to do the upload. I know this works because
I tested by posting to an asp page that saves the file.
Now I need to create a .NET web service to accept and save the file. Of all
the web service samples I found, the only ones...
|
by: ruju00 |
last post by:
I am getting an error in Login() method of the following class
FtpConnection
public class FtpConnection
{
public class FtpException : Exception
{
public FtpException(string message) : base(message){}
public FtpException(string message, Exception innerException) :
base(message,innerException){}
|
by: Glen Buell |
last post by:
Hi all,
I have a major problem with my ASP.NET website and it's SQL Server
2005 Express database, and I'm wondering if anyone could help me out
with it.
This site is on a webhost (WebHost4Life) and was running fine and
dandy, until I decided I needed to add some additional stored
procedures to the database.
|
by: Buddy Home |
last post by:
Hello,
I'm trying to upload a file programatically and occasionally I get the
following error message.
Unable to write data to the transport connection: An established connection
was aborted by the software in your host machine.
Stack Trace
at System.Net.Sockets.NetworkStream.Write(Byte buffer, Int32 offset, Int32
| |
by: Javad |
last post by:
Hello
I know that I should get the information of windows internet connections by
using "rasapi32.dll" library, and I also have some sample codes, but I can't
make them work. My exact need is to get the "UserName" of a connection. How
is it possible?
plz hlp
thnk u
|
by: =?Utf-8?B?TWF0dA==?= |
last post by:
I am using the following code to connect to and download files from an ftp
server, but the Symantec anti-virus software on some of my customers machines
tells them that their computers are attacking the Ftp server with "FTP
Pathname Glob BO". See the following link for more info:
http://www.symantec.com/avcenter/attack_sigs/s20430.html
This is standard .Net code, so I'm not understanding why it would trigger
such a response. Also,...
|
by: hotflash |
last post by:
Hi All,
I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but don't have any luck is to do a form validation. This script requires the files: db-file-to-disk.asp and _upload.asp. There is a DESCRIPTION field in the db-file-to-disk.asp file, what I want to do is the user has to field out this fied before...
|
by: =?Utf-8?B?U2NvdHQgVHJpY2s=?= |
last post by:
I followed the instructions from MSDN for Webclient UploadFile and I get an
error: Could not find file 'C:\testfile.xls'.
If I add the file (c:\testfile.xls) to the server I do not get the error and
the file is copied from the server to the server, rather than from the web
client to the server.
Please help!!!
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |