![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | FTP not supported through http proxy I have got a web proxy through which I am able to browse the internet. However when I try to perform ftp uploads I get an InvalidOperationException saying that FTP commands cannot be issued over a HTTP proxy. System.InvalidOperationException was unhandled Message="The requested FTP command is not supported when using HTTP proxy." Source="System" StackTrace: at System.Net.FtpWebRequest.GetHttpWebRequest() at System.Net.FtpWebRequest.GetRequestStream() at rcvfileUploader.Program.Main(String[] args) in C:\Arun \JobsUploader\rcvfileUploader\rcvfileUploader\Program.cs:line 23 at System.AppDomain._nExecuteAssembly(Assembly assembly, String [] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() |
My System Specs![]() |
| | #2 (permalink) |
| | Re: FTP not supported through http proxy I thought FTP and HTTP are two entirely different protocols....how does one relate to the other?? Mark -- Mark Salsbery Microsoft MVP - Visual C++ "deostroll" <deostroll@xxxxxx> wrote in message news:76ea8d41-c758-4ae8-87ae-05398255a948@xxxxxx Quote: > I have got a web proxy through which I am able to browse the internet. > However when I try to perform ftp uploads I get an > InvalidOperationException saying that FTP commands cannot be issued > over a HTTP proxy. > > > System.InvalidOperationException was unhandled > Message="The requested FTP command is not supported when using HTTP > proxy." > Source="System" > StackTrace: > at System.Net.FtpWebRequest.GetHttpWebRequest() > at System.Net.FtpWebRequest.GetRequestStream() > at rcvfileUploader.Program.Main(String[] args) in C:\Arun > \JobsUploader\rcvfileUploader\rcvfileUploader\Program.cs:line 23 > at System.AppDomain._nExecuteAssembly(Assembly assembly, String > [] args) > at System.AppDomain.ExecuteAssembly(String assemblyFile, > Evidence assemblySecurity, String[] args) > at > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > at System.Threading.ThreadHelper.ThreadStart_Context(Object > state) > at System.Threading.ExecutionContext.Run(ExecutionContext > executionContext, ContextCallback callback, Object state) > at System.Threading.ThreadHelper.ThreadStart() |
My System Specs![]() |
| | #3 (permalink) |
| | Re: FTP not supported through http proxy On Dec 25, 2:41*am, "Mark Salsbery [MVP]" <MarkSalsbery[MVP] @newsgroup.nospam> wrote: Quote: > I thought FTP and HTTP are two entirely different protocols....how does one > relate to the other?? > > Mark > > -- > Mark Salsbery > Microsoft MVP - Visual C++ > > "deostroll" <deostr...@xxxxxx> wrote in message > > news:76ea8d41-c758-4ae8-87ae-05398255a948@xxxxxx > Quote: > > I have got a web proxy through which I am able to browse the internet. > > However when I try to perform ftp uploads I get an > > InvalidOperationException saying that FTP commands cannot be issued > > over a HTTP proxy. Quote: > > System.InvalidOperationException was unhandled > > *Message="The requested FTP command is not supported when using HTTP > > proxy." > > *Source="System" > > *StackTrace: > > * * * at System.Net.FtpWebRequest.GetHttpWebRequest() > > * * * at System.Net.FtpWebRequest.GetRequestStream() > > * * * at rcvfileUploader.Program.Main(String[] args) in C:\Arun > > \JobsUploader\rcvfileUploader\rcvfileUploader\Program.cs:line 23 > > * * * at System.AppDomain._nExecuteAssembly(Assembly assembly, String > > [] args) > > * * * at System.AppDomain.ExecuteAssembly(String assemblyFile, > > Evidence assemblySecurity, String[] args) > > * * * at > > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > > * * * at System.Threading.ThreadHelper.ThreadStart_Context(Object > > state) > > * * * at System.Threading.ExecutionContext.Run(ExecutionContext > > executionContext, ContextCallback callback, Object state) > > * * * at System.Threading.ThreadHelper.ThreadStart() why I get the problem I think. --deostroll |
My System Specs![]() |
| | #4 (permalink) |
| | Re: FTP not supported through http proxy On Dec 23, 9:30*pm, deostroll <deostr...@xxxxxx> wrote: Quote: > I have got a web proxy through which I am able to browse the internet. > However when I try to perform ftp uploads I get an > InvalidOperationException saying that FTP commands cannot be issued > over a HTTP proxy. > > System.InvalidOperationException was unhandled > * Message="The requested FTP command is not supported when using HTTP > proxy." > * Source="System" > * StackTrace: > * * * *at System.Net.FtpWebRequest.GetHttpWebRequest() > * * * *at System.Net.FtpWebRequest.GetRequestStream() > * * * *at rcvfileUploader.Program.Main(String[] args) in C:\Arun > \JobsUploader\rcvfileUploader\rcvfileUploader\Program.cs:line 23 > * * * *at System.AppDomain._nExecuteAssembly(Assembly assembly, String > [] args) > * * * *at System.AppDomain.ExecuteAssembly(String assemblyFile, > Evidence assemblySecurity, String[] args) > * * * *at > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > * * * *at System.Threading.ThreadHelper.ThreadStart_Context(Object > state) > * * * *at System.Threading.ExecutionContext.Run(ExecutionContext > executionContext, ContextCallback callback, Object state) > * * * *at System.Threading.ThreadHelper.ThreadStart() FtpWebRequest.GetRequestStream? There is a list of commands that are accepted, and anything else is listed as throwing the exception you see. http://msdn.microsoft.com/en-us/libr...am(VS.80).aspx |
My System Specs![]() |
| | #5 (permalink) |
| | Re: FTP not supported through http proxy On Dec 26, 5:25*pm, montei...@xxxxxx wrote: Quote: > On Dec 23, 9:30*pm, deostroll <deostr...@xxxxxx> wrote: > > > Quote: > > I have got a web proxy through which I am able to browse the internet. > > However when I try to perform ftp uploads I get an > > InvalidOperationException saying that FTP commands cannot be issued > > over a HTTP proxy. Quote: > > System.InvalidOperationException was unhandled > > * Message="The requested FTP command is not supported when using HTTP > > proxy." > > * Source="System" > > * StackTrace: > > * * * *at System.Net.FtpWebRequest.GetHttpWebRequest() > > * * * *at System.Net.FtpWebRequest.GetRequestStream() > > * * * *at rcvfileUploader.Program.Main(String[] args) in C:\Arun > > \JobsUploader\rcvfileUploader\rcvfileUploader\Program.cs:line 23 > > * * * *at System.AppDomain._nExecuteAssembly(Assembly assembly,String > > [] args) > > * * * *at System.AppDomain.ExecuteAssembly(String assemblyFile, > > Evidence assemblySecurity, String[] args) > > * * * *at > > Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() > > * * * *at System.Threading.ThreadHelper.ThreadStart_Context(Object > > state) > > * * * *at System.Threading.ExecutionContext.Run(ExecutionContext > > executionContext, ContextCallback callback, Object state) > > * * * *at System.Threading.ThreadHelper.ThreadStart() > Have you looked at the documentation for > FtpWebRequest.GetRequestStream? *There is a list of commands that are > accepted, and anything else is listed as throwing the exception you > see. > > http://msdn.microsoft.com/en-us/libr...ebrequest.getr... I guess I've found a solution. I found it discussed in the msdn forums. You have something called a proxy as a property for an FtpWebRequest. Just initialize it with an empty instance... myFtpRequestObj.Proxy = new WebProxy(); --deostroll |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Proxy? | Network & Sharing | |||
| http not supported | Vista mail | |||
| no DX 10 supported driver on first DX10 supported card | Vista General | |||