473,387 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 5311
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gorilla | last post by:
I bound my package with EXPLAIN(YES), and it's got the following static SQL in it: EXEC SQL SELECT CARDF, RECLENGTH INTO :CARDF,:RECLENGTH FROM SYSIBM.SYSTABLES WHERE NAME = :TBNAME AND...
0
by: john farrow | last post by:
I am using a third party library (SVG#) which uses WebRequest.RegisterPrefix to register a custom handler for the "http://" prefix using the code: WebRequest.RegisterPrefix("http://", new...
1
by: Aaron | last post by:
whats the difference between webrequest and webclient? and in what case should I use which? thanks Aaron
1
by: Dennis Powell | last post by:
Can anyone show me an example of connecting to an FTP server with a WebRequest object. According to the help file it can be done but, I can't find any example of how to do this anywhere. When I...
2
by: BrentonMCA | last post by:
I am trying to create a webrequest using the create method with a URL (string or system.uri) with the prefix "http://". A "system.notsupportedexception" is raised, even though documentation tells...
3
by: Kevin Steffer | last post by:
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...
4
by: Sathyaish | last post by:
The WebRequest class implements IWebRequestCreate and hence, a method Create. This method has two other overloads, one of which is a private method. Here's how it looks: public static...
2
by: Ulrike Klusik | last post by:
Hello Folks, i've got two structural identical tables (including tablespace and indexes) with identical data, on which the access path of an SQL is differs. But I don't see a reason for the...
1
by: S Moran | last post by:
c# vs2005 pro been asked to write a small app that "punches in" via a POST to a URL. if the response from the server contains the text "Punch Recorded" then all is well. Whats happening is that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.