Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - FTP not supported through http proxy

Reply
 
Old 12-23-2008   #1 (permalink)
deostroll


 
 

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 SpecsSystem Spec
Old 12-24-2008   #2 (permalink)
Mark Salsbery [MVP]


 
 

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 SpecsSystem Spec
Old 12-25-2008   #3 (permalink)
deostroll


 
 

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()
We usually connect to the internet through a proxy server, which is
why I get the problem I think.

--deostroll
My System SpecsSystem Spec
Old 12-26-2008   #4 (permalink)
monteithm


 
 

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()
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...am(VS.80).aspx
My System SpecsSystem Spec
Old 12-28-2008   #5 (permalink)
deostroll


 
 

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...
Hi,
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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46