473,387 Members | 1,798 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.

Running classic ASP under .NET

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

Similar topics

1
by: Adi | last post by:
A java program we have written crashes with IBM JDK 1.3.1 on linux. It works fine on other platforms(Solaris,HPUx). It gets a SIGSERV Signal 11 and crashes just after few minutes after starting up....
2
by: NIm | last post by:
Hi, I have Xp prof, IIs 5.1, .NET2003 on my machine. I had the error "Visual studio.net has detected that the specified web server is not runnning ASP.Net version 1.1. Yow will be unable to run...
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
7
by: Oenone | last post by:
Sorry for the cross-post but I've really no idea where this is best suited. I've an ADO.NET application which connects to a SQL Server database. I have spent the entire morning trying to get it...
17
by: Michael | last post by:
In VB.NET, how do you check to see if an instance of your application is already running?
17
by: Saps | last post by:
Hi all. Can anyone help me here. I have loads of .sql files and i need a way to call these from my asp page so the user can run them from the browser. Meaning i have a page with a list of all...
2
by: =?Utf-8?B?QWxhc3RhaXIgQmVsbA==?= | last post by:
I am having trouble creating a web site on a server running sharepoint services. I am creating an ASP.Net website using Visual Studio 2005. The server I am trying to create it on is a Windows 2003...
5
by: HvLa | last post by:
I've just installed Visual Web developer 2008 and tried to run my first ASP.net web site. When I run it on my Vista Business PC I got an error "Page can not be displayed". What should I check to...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.