Click here to Skip to main content
15,914,905 members
Home / Discussions / C#
   

C#

 
AnswerRe: Web Project Type not available Pin
Peace ON24-May-10 20:45
Peace ON24-May-10 20:45 
QuestionSerialization Problem Pin
Kevin Marois24-May-10 13:00
professionalKevin Marois24-May-10 13:00 
AnswerRe: Serialization Problem Pin
William Winner24-May-10 13:07
William Winner24-May-10 13:07 
GeneralRe: Serialization Problem Pin
Kevin Marois24-May-10 13:08
professionalKevin Marois24-May-10 13:08 
GeneralRe: Serialization Problem Pin
William Winner24-May-10 13:10
William Winner24-May-10 13:10 
GeneralRe: Serialization Problem Pin
Kevin Marois24-May-10 13:13
professionalKevin Marois24-May-10 13:13 
GeneralRe: Serialization Problem Pin
Ravi Bhavnani24-May-10 14:35
professionalRavi Bhavnani24-May-10 14:35 
QuestionFtpWebRequest accepting a port number when UsePassive = true. Does this violate RFC 959? Pin
Alaric_24-May-10 8:47
professionalAlaric_24-May-10 8:47 
Hi guys,
Last week, I rolled an app out to production and wouldn't you know, today someone comes to tell me "We're not going to be able to use Port 20 for FTP. Production Management has a separate data port for us." Reasoning is irrelevant for this discussion, but that left me trying to surgically modify my Upload code to allow for a different port to be specified. It ended up being easy, but the way it works kind of left me scratching my head.

For anyone that needs to replicate this, all you have to do is specify your port number after the host name. Really easy. ...But, the thing that puzzled me is that this worked while I had the UsePassive property of my ftpWebRequest set to true (I tested before I had gone in and checked the request's properties)

Since I had specified for the ftpwebrequest to sent a PASV command to the server, why was I able to dictate to the server which port number it was going to be receiving data on?

RFC 959 Section 3.2 states that the client may specify an arbitrary port via a PORT command, but I did not issue a PORT command...I issued a PASV command. For this to work, there must be something else going on under the covers of FtpWebRequest.

Can anyone shed light onto why I was able to specify a port while in Passive mode?

"I need build Skynet. Plz send code"

QuestionIterator, foreach, IEnumerable IEnumerator for a beginner :s Pin
bon_chan24-May-10 7:47
bon_chan24-May-10 7:47 
AnswerRe: Iterator, foreach, IEnumerable IEnumerator for a beginner :s Pin
Luc Pattyn24-May-10 8:04
sitebuilderLuc Pattyn24-May-10 8:04 
AnswerRe: Iterator, foreach, IEnumerable IEnumerator for a beginner :s Pin
Abhinav S24-May-10 18:23
Abhinav S24-May-10 18:23 
GeneralRe: Iterator, foreach, IEnumerable IEnumerator for a beginner :s Pin
bon_chan25-May-10 4:48
bon_chan25-May-10 4:48 
Question2D Map collison help required Pin
venomation24-May-10 7:00
venomation24-May-10 7:00 
AnswerRe: 2D Map collison help required [modified] Pin
Alaric_24-May-10 8:55
professionalAlaric_24-May-10 8:55 
AnswerRe: 2D Map collison help required Pin
Alaric_24-May-10 9:07
professionalAlaric_24-May-10 9:07 
GeneralRe: 2D Map collison help required [modified] Pin
Alaric_25-May-10 4:48
professionalAlaric_25-May-10 4:48 
AnswerRe: 2D Map collison help required Pin
venomation26-May-10 5:59
venomation26-May-10 5:59 
QuestionMessage Removed Pin
24-May-10 3:30
Xpnctoc24-May-10 3:30 
AnswerRe: Form controls data binding sequence Pin
Luc Pattyn24-May-10 5:21
sitebuilderLuc Pattyn24-May-10 5:21 
GeneralRe: Form controls data binding sequence Pin
Xpnctoc24-May-10 5:30
Xpnctoc24-May-10 5:30 
GeneralRe: Form controls data binding sequence Pin
Luc Pattyn24-May-10 7:50
sitebuilderLuc Pattyn24-May-10 7:50 
GeneralRe: Form controls data binding sequence Pin
Xpnctoc24-May-10 8:00
Xpnctoc24-May-10 8:00 
GeneralRe: Form controls data binding sequence Pin
Luc Pattyn24-May-10 8:09
sitebuilderLuc Pattyn24-May-10 8:09 
GeneralRe: Form controls data binding sequence Pin
Xpnctoc24-May-10 8:15
Xpnctoc24-May-10 8:15 
QuestionVisual Studions 2005 and crystal reports 11.5 R2 Pin
krown24-May-10 2:56
krown24-May-10 2:56 

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.