Click here to Skip to main content
15,897,334 members
Home / Discussions / C#
   

C#

 
QuestionProblem I can't get past. Pin
Cory Borrow26-Jun-07 13:54
Cory Borrow26-Jun-07 13:54 
AnswerRe: Problem I can't get past. Pin
Ed.Poore26-Jun-07 13:59
Ed.Poore26-Jun-07 13:59 
GeneralRe: Problem I can't get past. Pin
Cory Borrow26-Jun-07 14:49
Cory Borrow26-Jun-07 14:49 
AnswerRe: Problem I can't get past. Pin
Christian Graus26-Jun-07 15:02
protectorChristian Graus26-Jun-07 15:02 
GeneralRe: Problem I can't get past. Pin
Cory Borrow26-Jun-07 15:54
Cory Borrow26-Jun-07 15:54 
GeneralRe: Problem I can't get past. Pin
Christian Graus26-Jun-07 16:22
protectorChristian Graus26-Jun-07 16:22 
QuestionC#, IE, C++ & BHO's... getting a C# Explorer Toolbar to talk to a C++ BHO Pin
BenAnderson26-Jun-07 11:03
BenAnderson26-Jun-07 11:03 
Questionftp FtpWebRespose.GetRespone() Exception Pin
Mostafa Siraj26-Jun-07 8:43
Mostafa Siraj26-Jun-07 8:43 
I'm using local ftp -using windows XP- I can access it through my browser ftp://localhost/ but when I'm trying to access it through my C# program I had an exception and here is my code

FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://localhost/");

request.Method = WebRequestMethods.Ftp.UploadFile;

//request.Credentials = new NetworkCredential("anonymous",
// "janeDoe@contoso.com");
request.Credentials = new NetworkCredential(username, password);

StreamReader sourceStream = new StreamReader(filePath);
byte[] fileContents = Encoding.UTF8.GetBytes(sourceStream.ReadToEnd());
sourceStream.Close();
request.ContentLength = fileContents.Length;


Stream requestStream = request.GetRequestStream();
requestStream.Write(fileContents, 0, fileContents.Length);
requestStream.Close();


FtpWebResponse response = (FtpWebResponse)request.GetResponse();

I get an "Invalid URI" at request.GetResponse() so can anyone figure what am doing wrong

thanks in advance

"Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure" -Nelson Mandela-
QuestionUDP Error Pin
ramdil26-Jun-07 6:54
ramdil26-Jun-07 6:54 
AnswerRe: UDP Error Pin
Dave Kreskowiak26-Jun-07 7:07
mveDave Kreskowiak26-Jun-07 7:07 
GeneralRe: UDP Error Pin
ramdil26-Jun-07 7:50
ramdil26-Jun-07 7:50 
GeneralRe: UDP Error Pin
Dave Kreskowiak26-Jun-07 9:11
mveDave Kreskowiak26-Jun-07 9:11 
GeneralRe: UDP Error Pin
ramdil27-Jun-07 3:20
ramdil27-Jun-07 3:20 
GeneralRe: UDP Error Pin
Dave Kreskowiak27-Jun-07 11:45
mveDave Kreskowiak27-Jun-07 11:45 
GeneralRe: UDP Error Pin
ramdil29-Jun-07 2:52
ramdil29-Jun-07 2:52 
QuestionAlways on top Pin
max2929726-Jun-07 6:09
max2929726-Jun-07 6:09 
AnswerRe: Always on top Pin
Luc Pattyn26-Jun-07 6:37
sitebuilderLuc Pattyn26-Jun-07 6:37 
AnswerRe: Always on top Pin
led mike26-Jun-07 6:54
led mike26-Jun-07 6:54 
GeneralRe: Always on top Pin
Ed.Poore26-Jun-07 8:42
Ed.Poore26-Jun-07 8:42 
GeneralRe: Always on top Pin
led mike26-Jun-07 8:49
led mike26-Jun-07 8:49 
AnswerRe: Always on top Pin
Ed.Poore26-Jun-07 8:42
Ed.Poore26-Jun-07 8:42 
AnswerRe: Always on top Pin
Dan Neely26-Jun-07 8:54
Dan Neely26-Jun-07 8:54 
QuestionRunning Applications Pin
max2929726-Jun-07 6:08
max2929726-Jun-07 6:08 
AnswerRe: Running Applications Pin
Luc Pattyn26-Jun-07 6:34
sitebuilderLuc Pattyn26-Jun-07 6:34 
Questionstart menu help Pin
Mabre of the Tadadas26-Jun-07 5:30
Mabre of the Tadadas26-Jun-07 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.