473,805 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1773
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.comw rote in message
news:OD******** ******@TK2MSFTN GP05.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.dl l 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.netNoS pamMwrote in
message news:OD******** ******@TK2MSFTN GP05.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.comw rote in message
news:OD******** ******@TK2MSFTN GP05.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.dl l
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.netNoS pamMwrote in
message news:OD******** ******@TK2MSFTN GP05.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.comw rote in message
news:OD******* *******@TK2MSFT NGP05.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.comw rote in message
news:eH******** ******@TK2MSFTN GP04.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.dl l
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.netNoS pamMwrote in
message news:OD******** ******@TK2MSFTN GP05.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.comw rote in message
news:OD******* *******@TK2MSFT NGP05.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*********@di scussions.micro soft.comwrote in message
news:37******** *************** ***********@mic rosoft.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.comw rote in message
news:ea******** ******@TK2MSFTN GP06.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*********@di scussions.micro soft.comwrote in message
news:37******** *************** ***********@mic rosoft.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
4314
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. THe program creates a good number of threads. Any suggestions most welcome. Have tried following setting LD_ASSUME_KERNEL=2.2.5 disabling JIT by passing -Djava.compiler=NONE
2
1931
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 ASP.Net web applications or services." in .NET 2003. I fixed it by running the IIS mappings for ASP.NET, aspnet_regiis -r. But I figured that my IIS had some issue and I had to register the dll for IIS.
16
2611
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 gradual upgrade of my web programming skills from Classic ASP / VBS to ASP.NET / VB.NET. While the study of the language differences and all the new features in .NET has so far not been a traumatic experience, I am a bit shell-schocked after
7
1515
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 to connect, but eventually got it working by setting (in the web.config file) the authentication mode to "Windows" and the identity impersonate flag to "True". I have left the identity username blank so that it picks up the username and password...
17
2406
by: Michael | last post by:
In VB.NET, how do you check to see if an instance of your application is already running?
17
2293
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 scripts. each when clicked i am able to run the script. so HOW and what do i do to call and run the .sql Thanks
2
4339
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 server. From what I understand I need to exclude in sharepoint services the folder where the application will be deployed. I have done this in the Define Managed Paths section of the Sharepoint management site, but it has no effect. Even after...
5
1351
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 get an ASP.Net application running. I'm familiar with classic ASP programming not with ASP.Net. Classic ASP applications are running fine on the same PC. -- Kind regards, Hans
0
9718
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10617
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10370
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5545
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4328
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.