473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

RedirectStandardOutput fails on W2k Server application, works on XP professional

I am trying to redirect output from an FTP conversation using
System.Diagnostics.Process.

When I running the following code on XP Professional, I get the
redirected output from my applications post to the FTP server and the
FTP server's responses.

When I migrate the application to Windows 2000 server the application
works, but I only see my posted conversation, I don't get any of the
redirected responses from the FTP server.

Why the difference? Can it be fixed.

Example of code used below:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.WorkingDirectory = WorkDir;
proc.StartInfo.UseShellExecute=true;
proc.StartInfo.FileName="ftp";

proc.StartInfo.RedirectStandardOutput = true;

proc.StartInfo.Arguments = cmdline;
proc.Start();

String output = String.Format("\n{0}",
proc.StandardOutput.ReadToEnd());
Jul 19 '05 #1
0 1577

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave | last post by:
I have developed a VB.net application that transfers a SOAP wrapped message to another server securely(using SSL and sever/client certificates). When I run this app from a Windows 2000...
2
by: Petr PALAS | last post by:
Hi, when I open ANY ASP.NET application on my computer I get this message: ---------------------------------------------------------------------------- ---- Server Application Unavailable ...
7
by: TJS | last post by:
does asp.net have server to server file transfer (upload) capability ?
0
by: R Fischer | last post by:
I am trying to redirect output from an FTP conversation using System.Diagnostics.Process. When I running the following code on XP Professional, I get the redirected output from my applications...
0
by: gm | last post by:
Immediately after generating the Access application from the Source Safe project I get: "-2147467259 Could not use ''; file already in use." If Access database closed and then reopened I get:...
5
by: Josef Brunner | last post by:
Hi everybody, I tried to publich my application to a simple file location. (no online publishing or anything like that.) Running the setup that VS generates for me works fine on my machine...
2
by: Anbu | last post by:
Sorry for cross posting the query. But I need a resolution as early as possible. I have developed an application to authenticate the user based on LDAP Search and authentication. The Windows...
6
by: John H Clark | last post by:
I am designing a site that requires AnonymousID. I set my web.config to allow this using <anonymousIdentification enable="true".../as recommended in the documentation. To verify the settings I...
5
by: Marc Castrechini | last post by:
We are currently using impersonation with constrained delegation to run a dual server environment for ASP.NET 2.0 and SQL Server 2005. Everything is up and running great, however, we have the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.