472,783 Members | 903 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,783 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 5246
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: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.