468,170 Members | 2,045 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,170 developers. It's quick & easy.

WebRequest.RegisterPrefix - whats the creator ?

Hi group

I have a webform which I want to make an ftp connection for a
filetransfer from.
The thing is when I use the WebRequest class it says "The URI prefix
is not recognized" and my URI is ftp://localhost/

Then I discovered that the WebRequest class has a RegisterPrefix
method which takes a string as prefix and it needs a
System.Net.IWebRequestCreate but how is such one made ?
The documentation is out of examples :(

Here is my code:

WebRequest.RegisterPrefix("ftp",WHAT TO BE HERE ??);
WebRequest wRequest = WebRequest.Create("ftp://localhost/");

/- Kevin -\
Jul 21 '05 #1
3 4991
Hi Kevin,

Unfortunately, the framework does not ship with an implementation of the FTP protocol, so in order to make your scenario work, you'll
need to write your own (or find one on the web). Once you have this FTP class, you'd create a class that implements IWebCreate and creates
instances of this class. This is the interface you'd pass to the RegisterPrefix method.

-Shawn
http://blogs.msdn.com/shawnfa

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they
originated.
--------------------
From: ke***@steffer.dk (Kevin Steffer)
Newsgroups: microsoft.public.dotnet.general
Subject: WebRequest.RegisterPrefix - whats the creator ?
Date: 6 Feb 2004 16:05:49 -0800
Organization: http://groups.google.com
Lines: 18
Message-ID: <e2**************************@posting.google.com >
NNTP-Posting-Host: 212.242.158.96
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1076112349 593 127.0.0.1 (7 Feb 2004 00:05:49 GMT)
X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Sat, 7 Feb 2004 00:05:49 +0000 (UTC)
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GXS01.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.p hx.gbl! newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnew s1.google.com!not-for-mailXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.general:123935
X-Tomcat-NG: microsoft.public.dotnet.general

Hi group

I have a webform which I want to make an ftp connection for a
filetransfer from.
The thing is when I use the WebRequest class it says "The URI prefix
is not recognized" and my URI is ftp://localhost/

Then I discovered that the WebRequest class has a RegisterPrefix
method which takes a string as prefix and it needs a
System.Net.IWebRequestCreate but how is such one made ?
The documentation is out of examples :(

Here is my code:

WebRequest.RegisterPrefix("ftp",WHAT TO BE HERE ??);
WebRequest wRequest = WebRequest.Create("ftp://localhost/");

/- Kevin -\

Jul 21 '05 #2
Thx Shawn

I'll take the big shovel and dig for a ftp class :)

/- Kevin -\

sh*****@online.microsoft.com ("Shawn Farkas") wrote in message news:<wU**************@cpmsftngxa07.phx.gbl>...
Hi Kevin,

Unfortunately, the framework does not ship with an implementation of the FTP protocol, so in order to make your scenario work, you'll
need to write your own (or find one on the web). Once you have this FTP class, you'd create a class that implements IWebCreate and creates
instances of this class. This is the interface you'd pass to the RegisterPrefix method.

-Shawn
http://blogs.msdn.com/shawnfa

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they
originated.
--------------------
From: ke***@steffer.dk (Kevin Steffer)
Newsgroups: microsoft.public.dotnet.general
Subject: WebRequest.RegisterPrefix - whats the creator ?
Date: 6 Feb 2004 16:05:49 -0800
Organization: http://groups.google.com
Lines: 18
Message-ID: <e2**************************@posting.google.com >
NNTP-Posting-Host: 212.242.158.96
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1076112349 593 127.0.0.1 (7 Feb 2004 00:05:49 GMT)
X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Sat, 7 Feb 2004 00:05:49 +0000 (UTC)
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GXS01.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.p hx.gbl!

newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnew s1.google.com!not-for-mail
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.general:123935
X-Tomcat-NG: microsoft.public.dotnet.general

Hi group

I have a webform which I want to make an ftp connection for a
filetransfer from.
The thing is when I use the WebRequest class it says "The URI prefix
is not recognized" and my URI is ftp://localhost/

Then I discovered that the WebRequest class has a RegisterPrefix
method which takes a string as prefix and it needs a
System.Net.IWebRequestCreate but how is such one made ?
The documentation is out of examples :(

Here is my code:

WebRequest.RegisterPrefix("ftp",WHAT TO BE HERE ??);
WebRequest wRequest = WebRequest.Create("ftp://localhost/");

/- Kevin -\

Jul 21 '05 #3
Check out IP*Works! internet toolkit - http://www.nsoftware.com/download/.
There's a .Net Edition (pure C#), including an FTP component (and over 40
other components), with demo applications.
--
Lance

IP*Works! Internet Toolkit www.nsoftware.com.
"Kevin Steffer" <ke***@steffer.dk> wrote in message
news:e2**************************@posting.google.c om...
Thx Shawn

I'll take the big shovel and dig for a ftp class :)

/- Kevin -\

sh*****@online.microsoft.com ("Shawn Farkas") wrote in message

news:<wU**************@cpmsftngxa07.phx.gbl>...
Hi Kevin,

Unfortunately, the framework does not ship with an implementation of the FTP protocol, so in order to make your scenario work, you'll need to write your own (or find one on the web). Once you have this FTP class, you'd create a class that implements IWebCreate and creates instances of this class. This is the interface you'd pass to the RegisterPrefix method.
-Shawn
http://blogs.msdn.com/shawnfa

--

This posting is provided "AS IS" with no warranties, and confers no rights. Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
--------------------
From: ke***@steffer.dk (Kevin Steffer)
Newsgroups: microsoft.public.dotnet.general
Subject: WebRequest.RegisterPrefix - whats the creator ?
Date: 6 Feb 2004 16:05:49 -0800
Organization: http://groups.google.com
Lines: 18
Message-ID: <e2**************************@posting.google.com >
NNTP-Posting-Host: 212.242.158.96
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1076112349 593 127.0.0.1 (7 Feb 2004 00:05:49 GMT)X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Sat, 7 Feb 2004 00:05:49 +0000 (UTC)
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GXS01.phx.gbl!TK2MSFTNGXA0
5.phx.gbl!TK2MSFTNGP08.phx.gbl!

newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwe
ll.syr.edu!postnews1.google.com!not-for-mailXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.general:123935
X-Tomcat-NG: microsoft.public.dotnet.general

Hi group

I have a webform which I want to make an ftp connection for a
filetransfer from.
The thing is when I use the WebRequest class it says "The URI prefix
is not recognized" and my URI is ftp://localhost/

Then I discovered that the WebRequest class has a RegisterPrefix
method which takes a string as prefix and it needs a
System.Net.IWebRequestCreate but how is such one made ?
The documentation is out of examples :(

Here is my code:

WebRequest.RegisterPrefix("ftp",WHAT TO BE HERE ??);
WebRequest wRequest = WebRequest.Create("ftp://localhost/");

/- Kevin -\

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by john farrow | last post: by
1 post views Thread by Aaron | last post: by
1 post views Thread by Dennis Powell | last post: by
3 posts views Thread by Kevin Steffer | last post: by
4 posts views Thread by Sathyaish | last post: by
2 posts views Thread by Ulrike Klusik | last post: by
1 post views Thread by S Moran | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.