.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to upload files to remote machine using FTP or other method in VB.Net 2005 (Windows Application)

Posted By:      Posted Date: October 20, 2010    Points: 0   Category :.NET Framework


I have to create an application to upload and download files using FTP.
Are there any classes, methods in VB.Net 2005(Windows Application) to do this?

I have created a small GUI for this.

It contains 4 text boxes - Path of Local file to be uploaded, IP address of remote machine, User name and password of remote machine At last there is one Transfer button when I click on this transfer button that file should get copied to the remote machine.


I tried this using FTPWebRequest class by reading example in msdn.

But to connect to remote machine it requires URI format of FTP and I only have IP address of that remote machine. I think there is no web server on that remote machine.

Should I need to install web server on that remote machine.

Or is there any other method to do upload files to remote machine ?


View Complete Post

More Related Resource Links

How to upload and download files from remote servers without using FTP

Hi, Can we upload and download files from remote servers without using FTP? If yes can you please tell me how can we do that? Thanks in advance, Vikas Jaigude. 

SharePoint upload files from windows explorer and emails from outlook by drag and drop

Guys, I need to have this functionality to upload files and mails by drag and drop, now sharepoint allows it by having that folderview in IFrame which takes the dropped item, but this does not allow files with spcial characters due to http URL related issue. How can I customize or program this to allow files with special chars in name, if not possible then how can I rename before the drop is over ? thanks, ram    

Pagination and Data buffering in Windows Application using C# 2005


.NET Windows application using C# interacts with Oracle DB for retrieving and saving data

With huge volume of data, the performance is slow and the memory usage is high, the application displays the entire data in the screen. Response time is high due to database call and client side data processing

Proposed Solution
Using pagination (from Oracle DB) to display partial data in the screen, response time of the application will be faster; however, it will make DB calls for each page. We are looking at a solution to get the 1st page data from DB and start the application, after which there will be a background job to get the rest of the data from DB to a local XML DB. So, in case of next page, the data will be loaded from XML instead of making a DB call.

Is this design possible?
Is synchronization possible between local XML DB and the Oracle DB?

How to read Metadata of Files In Windows Server 2008 Machine x64?



I want to read metadata like (Author,Modified By, comments..etc) on OLE Files. Please tell me any reliable approach using C# on how to read metadata from File System which is running Windows Server 2008 machine x64 Environment .

Thanks in advance.

Devi Prasad M

Access to update application files stored in Program Files, restricted on a Windows 7 device when us


Hi all,


I'm here to solve a problem, and that is our application, which speaks to a central server on startup, checks for updates and if found, updates its local files (stored in Program Files) with those pushed from the central server.  Currently, we are getting access denied exception when this updater tries to add/edit files in this special directory.  What I am looking for is a way to accomplish this updating process without moving these application files to a different location.

Execute process on remote machine from windows service



I am using Windows Management Instrumentation (WMI) to connect to a remote system. I am connecting to a remote system and executing an exe on the remote system. This works if it is a normal exe. I am passing the user name and the password as well.

But when I use the same code in a Windows Service, I get an error which says "Access is Denied." My requirement is to invoke the exe (every 2 hours) on client system from a windows service on the server.

My code looks like this:



processHandle As Integer
Dim connection

Execute process on remote machine from windows service



I am using Windows Management Instrumentation (WMI) to connect to a remote system. I am connecting to a remote system and executing an exe on the remote system. This works if it is a normal exe. I am passing the user name and the password as well.

But when I use the same code in a Windows Service, I get an error which says "Access is Denied." My requirement is to invoke the exe (every 2 hours) on client system from a windows service on the server.

My code looks like this:



processHandle As Integer
Dim connection

Can this be any harder? SQL Express 2005 needed on a 64bit Windows 7 upgraded machine


I run a program, WinPakSE, that controls a card access system for our building. I just upgraded the computer it ran on from XP to Windows 7 Prof 64 bit. I checked with Honeywell and they said the program will only work in 64 bit environment if I installed SQL Express 2005 and ran WinPak in XP Mode. They sent me some instructions and the following link to download SQL Express 2005:http://www.microsoft.com/downloads/details.aspx?familyid=220549b5-0b07-4448-8848-dcc397514b41&displaylang=en

So I did that and followed their directions. First thing I get a message that their are known compatibility issues and need to upgrade to Service Pack 3. Ok- I can do that. Next problem is it gives me this a warning message under ASP.Net Version Registration Requirement that says:
- ASP.Net Version Reg

How To connect remote server in windows form application


Hi All

i have implementing one Windows application in that i need to get the Forex market quotes values form perticulat server how can i implement this i have some Php Code but i need to in C# application.

This is my Php code to receive the quotes form server;

define('T_HOST','');  // MetaTrader Server Address  

define('T_PORT',443);                   // MetaTrader Server Port
define('T_TIMEOUT',1);                  // MetaTrader Server Connection Timeout, in sec


define('T_CACHEDIR','cache/');         // cache files directory
define('T_CACHETIME',1);               // cache expiration time, in sec

define('T_CLEAR_DELNUMBER',1);        // limit of deleted files, after which process of cache clearing should be stopped

$MQ_CLEAR_STARTTIME = 0; // time
$MQ_CLEAR_NUMBER = 0;    // deleted files counter

// query quotes and parse result
                          // $re=MQ_Query($q);
$qRes = MQ_Query($q);
function MQ_Query($query,$cacheDir=T_CACHEDIR,$cacheTime=T_CACHETIME,$cacheDirPrefix='')

   $ret = 

Reloading and refreshing flash files inside a windows form in wpf application


I have a app which shows load a flash movie in form, using this code

axShockwaveFlash1 = new AxShockwaveFlashObjects.AxShockwaveFlash()


The problem is that whenever I make a changes in the flash hosted in our application and try to refresh the to see the changes, the new changes is 'messed' up. to be more specific , it seems that the background and some controls of the previous flash still remain, 'spoiling' the new flash that is loaded. why?

Using the following methods before loading the second flash video makes no difference

axShockwaveFlash1.Refresh(); axShockwaveFlash1.Stop();

Even I tried  loading "empty" flash video before loading your new video?

axShockwaveFlash1.LoadMovie(0,""); but nothing worked

Its urgent.Could somebody h

SQL Server 2005 random login failures for windows forms application


One of our VS .NET 2008 windows forms applications runs from multiple client machines. The application randomly has login failures from random machines and from random places in the code. The login works almost every time but about once every fifteen minutes an error shows up in SQL Server error logs from a random user. We are running a clustered SQL Server 2005 system and the database is in 2005 (90) mode.

The following error appears in the SQL Server error logs:

Login failed for 'App_Login'. [CLIENT: XXX.XXX.X.XXX] Error: 18456, Severity: 14, State: 16.

The following error is what the client sees:

How to make my vs.net 2005 built application run on 64bit windows server?

I have a problem with my application, i can't make it run in a 64 bit windows server 2003. My App use to communicate to a finger print scanner device which listens to device events and automatically transfers device logs to a database.

This app use to run smoothly in a 32bit windows (my development env is xp sp2 using vs.net 2005 and .net 2.0 framework). But when i tried to install it on a 64 environment everything went wrong. The app returns a CLSID exception in which it can't find the specified reference.

I have already encountered and fixed this exception in a 32bit windows environment but it really freaks me out seeing my app stucked in a 64bit environment.

Any ideas on how I can fix my problem is greatly appreciated!
Thank you in advance..

insert Arabic text to sql express 2005 (windows application)




I need your help guys. Am devolving a windows application by c#. I have problem of insert Arabic text to sql express 2005. I always get ???? instead of the Arabic letters. I change the collation of the database field to windows collation and choose Arabic but still I get the same problem.


Your help is appreciated



Application Architecture in Windows Forms 2.0

Applications have special support in Windows Forms. For starters, you can manage and tailor your application's lifetime, and, when the work flow is disrupted by an unhandled exception, you can choose from several methods of response. Then, there are several application models that you can employ, including Single Document Interface (SDI) and Multiple Document Interface (MDI) applications, each of which can support either multiple-instance or single-instance mode, the former the VS05 default and the latter requiring special consideration. All applications, however, can discover and use a wide variety of information about the system and environment they execute in.

Application Architecture in Windows Forms 2.0-Single-MDI Applications

Consider an MDI application like Microsoft Excel; files opened from the file system (by double-clicking) are all opened as separate child windows within the parent Excel window.7 For the first instance of an MDI application to open a new child window to display the file that was passed to the second instance of the application, the second instance must be able to communicate with the initial instance.

all basic windows controls,wpf controls,silverlight application

here you will find all the information from basic.

SqlServer - Windows Account to install Application from Gallery


Referring to this tutorial: http://www.asp.net/webmatrix/tutorials/download-and-install-an-asp-net-application

I selected umbraco cms and got this wizard:

I already have Standard Sql Server 2005 on my machine which I wanted to us for above DB and not SqlExpress.

I did not remember "sa" account pwd nor I use explicitly any account to connect to my Sqlserver. I use Windows Authentication account i.e implicit authentication. So I created new account and gave all rights and used it in the above wizard and was able to install the database after some struggle.

My question is: What if I want to use my Windows Account to install the database above? Why the wizard don't have any option to use Windows Integrated Authentication?

Note: I can create the DB with external user I created, just looking specifics for using Windows Authentication for above installation.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend