Bob Barrows [MVP] wrote:
John wrote:
>hi Everybody,
I just made a simple web site using Frontpage 2003 with a simple MS
Accesss database.
IF I try to open the asp page in a browser by typing
http://localhost/mysite/db.asp it opens just fine
However if I try to opeb it by typing c:/mysite/db.asp I get the
following error message:
The Database Results component on this page is unable to display
database content. The page must have a filename ending in '.asp', and
the web must be hosted on a server that supports Active Server Pages.
Why are you trying to open it using "c:/mysite/db.asp"? Are you
trying to edit it?
I am no ASP expert (by a long, long way !!), but surely ASP pages will only
work as ASP pages when one is connected to a server.
Opening as
http://localhost/mysite/db.asp will open it using IIS which is
installed locally (I assume). But opening as "c:/mysite/db.asp" would try to
open the page as a web page (using Internet Explorer perhaps ??). There
would be no connection to a server - hence the message.
I have certainly found this if I open an ASP page locally. I do not have IIS
(I am using XP Home), so I will always get this message. So to edit it, I
explicitly open it with an editor -UltraEdit is my choice.
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website:
http://trevorl.mvps.org/
----------------------------------------