By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,070 Members | 1,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,070 IT Pros & Developers. It's quick & easy.

Running classic ASP under .NET

P: n/a
Hi,

I am attempting to do URL ReWriting with .NET to my classic ASP app. (Too
big to upgrade to .NET at the moment). However, those who have tried will
know that classic asp when rewritten doesn't work.

Speaking to a friend of mine, he says (and I am sure I have seen it before
as well) that I can run the classic ASP under the aspnet isapi. However, I
can't find how to do that.

Any ideas?

For the re-writing, I am using .NET 1.1 (as I already have other things on
the site using 1.1)
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
Oct 8 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
This gives an overhead view or URL rewriting and how to replace the http
"filters" in .NET.

http://msdn.microsoft.com/en-us/library/ms972974.aspx

The replacement of the "filters" is shown near the top. I would read
further, as understanding what is going on behind the scenes may make
something click.

In URL rewriting, you are merely taking a request, say
http://www.mysite.com/calendar/10/8/2008/ and turning it into something like
http://www.mysite.com/calendar.asp?date=10/8/2008. As long as you have the
correct handling of the request, you should be able to redirect to any type
of page you desire. In theory, it should not matter what page you are
redirecting the user to. In practice, this may not be the case. I have never
rerouted to a classic ASP page. But, once again, understanding what is going
on behind the scenes can often lead to an AHA moment.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"David" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:OD**************@TK2MSFTNGP05.phx.gbl...
Hi,

I am attempting to do URL ReWriting with .NET to my classic ASP app. (Too
big to upgrade to .NET at the moment). However, those who have tried will
know that classic asp when rewritten doesn't work.

Speaking to a friend of mine, he says (and I am sure I have seen it before
as well) that I can run the classic ASP under the aspnet isapi. However, I
can't find how to do that.

Any ideas?

For the re-writing, I am using .NET 1.1 (as I already have other things on
the site using 1.1)
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
Oct 8 '08 #2

P: n/a
Hi,

I know how url-rewriting works, having implemented it on many .net sites.

I cannot see how to apply it to work with classic asp. That doc doesn't
really go into it.

I have tried changing the isapi filter from asp.dll to aspnet_isapi.dll but
that just gives me an error for ALL my asp pages before I have even
rewritten the url (it happens to be the same error, something to the effect
of "This page cannot be served."

Looks like it isn't going to be that easy, unless I use a 3rd party isapi.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:OD**************@TK2MSFTNGP05.phx.gbl...
This gives an overhead view or URL rewriting and how to replace the http
"filters" in .NET.

http://msdn.microsoft.com/en-us/library/ms972974.aspx

The replacement of the "filters" is shown near the top. I would read
further, as understanding what is going on behind the scenes may make
something click.

In URL rewriting, you are merely taking a request, say
http://www.mysite.com/calendar/10/8/2008/ and turning it into something
like http://www.mysite.com/calendar.asp?date=10/8/2008. As long as you
have the correct handling of the request, you should be able to redirect
to any type of page you desire. In theory, it should not matter what page
you are redirecting the user to. In practice, this may not be the case. I
have never rerouted to a classic ASP page. But, once again, understanding
what is going on behind the scenes can often lead to an AHA moment.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"David" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:OD**************@TK2MSFTNGP05.phx.gbl...
>Hi,

I am attempting to do URL ReWriting with .NET to my classic ASP app. (Too
big to upgrade to .NET at the moment). However, those who have tried will
know that classic asp when rewritten doesn't work.

Speaking to a friend of mine, he says (and I am sure I have seen it
before as well) that I can run the classic ASP under the aspnet isapi.
However, I can't find how to do that.

Any ideas?

For the re-writing, I am using .NET 1.1 (as I already have other things
on the site using 1.1)
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available

Oct 8 '08 #3

P: n/a
Which web server are you using ? The web server that comes with VS can't
serve ASP pages. Could it be what you are seeing ?

Else which version of IIS are you using ? Have you seen this on or are you
using IIS 7 ?
(http://learn.iis.net/page.aspx/461/c...write-module/).

It would be likely more difficult for IIS6 if not impossible (basically the
request should be handled by .NET but the page should be processed by the
"classic" ASP engine). In IIS7, this is just that you use .NET to extend
whatever you want in the IIS server making this likely much simpler...

--
Patrice

"David" <da*****************@revilloc.REMOVETHIS.coma écrit dans le
message de groupe de discussion : eH**************@TK2MSFTNGP04.phx.gbl...
Hi,

I know how url-rewriting works, having implemented it on many .net sites.

I cannot see how to apply it to work with classic asp. That doc doesn't
really go into it.

I have tried changing the isapi filter from asp.dll to aspnet_isapi.dll
but that just gives me an error for ALL my asp pages before I have even
rewritten the url (it happens to be the same error, something to the
effect of "This page cannot be served."

Looks like it isn't going to be that easy, unless I use a 3rd party isapi.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:OD**************@TK2MSFTNGP05.phx.gbl...
>This gives an overhead view or URL rewriting and how to replace the http
"filters" in .NET.

http://msdn.microsoft.com/en-us/library/ms972974.aspx

The replacement of the "filters" is shown near the top. I would read
further, as understanding what is going on behind the scenes may make
something click.

In URL rewriting, you are merely taking a request, say
http://www.mysite.com/calendar/10/8/2008/ and turning it into something
like http://www.mysite.com/calendar.asp?date=10/8/2008. As long as you
have the correct handling of the request, you should be able to redirect
to any type of page you desire. In theory, it should not matter what page
you are redirecting the user to. In practice, this may not be the case. I
have never rerouted to a classic ASP page. But, once again, understanding
what is going on behind the scenes can often lead to an AHA moment.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"David" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:OD**************@TK2MSFTNGP05.phx.gbl...
>>Hi,

I am attempting to do URL ReWriting with .NET to my classic ASP app.
(Too big to upgrade to .NET at the moment). However, those who have
tried will know that classic asp when rewritten doesn't work.

Speaking to a friend of mine, he says (and I am sure I have seen it
before as well) that I can run the classic ASP under the aspnet isapi.
However, I can't find how to do that.

Any ideas?

For the re-writing, I am using .NET 1.1 (as I already have other things
on the site using 1.1)
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available

Oct 8 '08 #4

P: n/a
unless you are using iis 7.0, which can be configured to support .net
pipelines, a url rewriter for asp (or any non asp.net request) must be
written as an isapi filter, which must be coded in c/c++

-- bruce (sqlwork.com)
"David" wrote:
Hi,

I am attempting to do URL ReWriting with .NET to my classic ASP app. (Too
big to upgrade to .NET at the moment). However, those who have tried will
know that classic asp when rewritten doesn't work.

Speaking to a friend of mine, he says (and I am sure I have seen it before
as well) that I can run the classic ASP under the aspnet isapi. However, I
can't find how to do that.

Any ideas?

For the re-writing, I am using .NET 1.1 (as I already have other things on
the site using 1.1)
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
Oct 8 '08 #5

P: n/a
It looks like Bruce found the answer, although you do have some choices
other than C++ or C (any language you can write a native DLL in will work,
C++ and C are the norm and the only ones I know of that will work with
Visual Studio):

Look here for ISAPI filter examples:
http://www.genusa.com/isapi/isapisrc.html

There is a filter already written for changing URLs, written in Delphi:
http://www.genusa.com/isapi/chgurl.zip

There is also this one, although it will require some tweaking to do what
you desire:
http://www.genusa.com/isapi/iisipmap.zip

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"David" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:eH**************@TK2MSFTNGP04.phx.gbl...
Hi,

I know how url-rewriting works, having implemented it on many .net sites.

I cannot see how to apply it to work with classic asp. That doc doesn't
really go into it.

I have tried changing the isapi filter from asp.dll to aspnet_isapi.dll
but that just gives me an error for ALL my asp pages before I have even
rewritten the url (it happens to be the same error, something to the
effect of "This page cannot be served."

Looks like it isn't going to be that easy, unless I use a 3rd party isapi.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:OD**************@TK2MSFTNGP05.phx.gbl...
>This gives an overhead view or URL rewriting and how to replace the http
"filters" in .NET.

http://msdn.microsoft.com/en-us/library/ms972974.aspx

The replacement of the "filters" is shown near the top. I would read
further, as understanding what is going on behind the scenes may make
something click.

In URL rewriting, you are merely taking a request, say
http://www.mysite.com/calendar/10/8/2008/ and turning it into something
like http://www.mysite.com/calendar.asp?date=10/8/2008. As long as you
have the correct handling of the request, you should be able to redirect
to any type of page you desire. In theory, it should not matter what page
you are redirecting the user to. In practice, this may not be the case. I
have never rerouted to a classic ASP page. But, once again, understanding
what is going on behind the scenes can often lead to an AHA moment.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"David" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:OD**************@TK2MSFTNGP05.phx.gbl...
>>Hi,

I am attempting to do URL ReWriting with .NET to my classic ASP app.
(Too big to upgrade to .NET at the moment). However, those who have
tried will know that classic asp when rewritten doesn't work.

Speaking to a friend of mine, he says (and I am sure I have seen it
before as well) that I can run the classic ASP under the aspnet isapi.
However, I can't find how to do that.

Any ideas?

For the re-writing, I am using .NET 1.1 (as I already have other things
on the site using 1.1)
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available

Oct 8 '08 #6

P: n/a
Thanks all for trying...

I am using Windows 2K3 Webserver edition, so I guess I am using IIS 6.
(Can't see how to easily determine IIS version)

Looks like I will have to use an isapi filter. :-(

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:37**********************************@microsof t.com...
unless you are using iis 7.0, which can be configured to support .net
pipelines, a url rewriter for asp (or any non asp.net request) must be
written as an isapi filter, which must be coded in c/c++

-- bruce (sqlwork.com)
"David" wrote:
>Hi,

I am attempting to do URL ReWriting with .NET to my classic ASP app. (Too
big to upgrade to .NET at the moment). However, those who have tried will
know that classic asp when rewritten doesn't work.

Speaking to a friend of mine, he says (and I am sure I have seen it
before
as well) that I can run the classic ASP under the aspnet isapi. However,
I
can't find how to do that.

Any ideas?

For the re-writing, I am using .NET 1.1 (as I already have other things
on
the site using 1.1)
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available

Oct 8 '08 #7

P: n/a
Look at
http://www.genusa.com/isapi/isapisrc.html

There are some ISAPI filters you can probably alter rather easily so you do
not reinvent the wheel.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"David" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:ea**************@TK2MSFTNGP06.phx.gbl...
Thanks all for trying...

I am using Windows 2K3 Webserver edition, so I guess I am using IIS 6.
(Can't see how to easily determine IIS version)

Looks like I will have to use an isapi filter. :-(

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:37**********************************@microsof t.com...
>unless you are using iis 7.0, which can be configured to support .net
pipelines, a url rewriter for asp (or any non asp.net request) must be
written as an isapi filter, which must be coded in c/c++

-- bruce (sqlwork.com)
"David" wrote:
>>Hi,

I am attempting to do URL ReWriting with .NET to my classic ASP app.
(Too
big to upgrade to .NET at the moment). However, those who have tried
will
know that classic asp when rewritten doesn't work.

Speaking to a friend of mine, he says (and I am sure I have seen it
before
as well) that I can run the classic ASP under the aspnet isapi. However,
I
can't find how to do that.

Any ideas?

For the re-writing, I am using .NET 1.1 (as I already have other things
on
the site using 1.1)
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available

Oct 9 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.