Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 24th, 2006, 02:05 AM
John
Guest
 
Posts: n/a
Default problem opening asp page

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.

Any solution to this ?

tia


  #2  
Old December 24th, 2006, 02:35 AM
Bob Barrows [MVP]
Guest
 
Posts: n/a
Default Re: problem opening asp page

John wrote:
Quote:
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?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


  #3  
Old December 24th, 2006, 02:45 AM
Trevor L.
Guest
 
Posts: n/a
Default Re: problem opening asp page

Bob Barrows [MVP] wrote:
Quote:
John wrote:
Quote:
>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/
----------------------------------------

  #4  
Old December 24th, 2006, 03:05 AM
Bob Barrows [MVP]
Guest
 
Posts: n/a
Default Re: problem opening asp page

Trevor L. wrote:
Quote:
Bob Barrows [MVP] wrote:
Quote:
>John wrote:
Quote:
>>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.
Why are you telling me this? :-)

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


  #5  
Old December 24th, 2006, 03:05 AM
Trevor L.
Guest
 
Posts: n/a
Default Re: problem opening asp page

Bob Barrows [MVP] wrote:
Quote:
Why are you telling me this? :-)
I am not.

I am attempting to expand on your reply to the OP with my experience
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------
  #6  
Old December 24th, 2006, 04:05 AM
John
Guest
 
Posts: n/a
Default Re: problem opening asp page

I've just started learning frontpage and I bought a tutorial DVD in which
the person that produced it made a simple access database and then used
Frontpage 2003 to import the database file and display the content in a
table on an asp page.

She was able to open the asp file using this syntax: c:/mysite/db.asp so I
tried to do the same and it didn't work for me.

So my question is if this is not how it's supposed to work how in the world
was she able to open it correctly without using
http://localhost/mysite/db.asp syntax




"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcomwrote in message
news:uUKIXLwJHHA.4112@TK2MSFTNGP04.phx.gbl...
Quote:
John wrote:
Quote:
>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?
>
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
>

  #7  
Old December 24th, 2006, 04:15 AM
Trevor L.
Guest
 
Posts: n/a
Default Re: problem opening asp page

John wrote:
Quote:
I've just started learning frontpage and I bought a tutorial DVD in
which the person that produced it made a simple access database and
then used Frontpage 2003 to import the database file and display the
content in a table on an asp page.
>
She was able to open the asp file using this syntax: c:/mysite/db.asp so I
tried to do the same and it didn't work for me.
>
So my question is if this is not how it's supposed to work how in
the world was she able to open it correctly without using
http://localhost/mysite/db.asp syntax
Bob Barrows is clearly the expert, but off the top of my head, I woudl say:

She couldn't :-))

That is, she couldn't open it correctly without using
http://localhost/mysite/db.asp syntax (or without opening it on a server
supporting ASP).

Here is my attempt to open guestbook.asp on my local drive (from Windows
Explorer)
Trevor L.'s Guestbook
Note: Update and Delete are admin only functions

Action Name Comments Timestamp
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.
.............

Now try it on http://trevorl.mvps.org/guestbook.asp - no problems
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------

  #8  
Old December 24th, 2006, 01:15 PM
Bob Barrows [MVP]
Guest
 
Posts: n/a
Default Re: problem opening asp page

John wrote:
Quote:
I've just started learning frontpage and I bought a tutorial DVD in
which the person that produced it made a simple access database and
then used Frontpage 2003 to import the database file and display the
content in a table on an asp page.
>
She was able to open the asp file using this syntax: c:/mysite/db.asp so I
tried to do the same and it didn't work for me.
>
So my question is if this is not how it's supposed to work how in
the world was she able to open it correctly without using
http://localhost/mysite/db.asp syntax
>
I would suspect there was some "movie magic". In order for code in an ASP
page to be executed, it needs to be requested via a web server.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


  #9  
Old December 24th, 2006, 11:45 PM
John
Guest
 
Posts: n/a
Default Re: problem opening asp page

OK, thanks. That's probably it. She probably didn't feel like getting into
IIS since the course is about Frontpage


"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcomwrote in message
news:ec3ZSy1JHHA.2140@TK2MSFTNGP03.phx.gbl...
Quote:
John wrote:
Quote:
>I've just started learning frontpage and I bought a tutorial DVD in
>which the person that produced it made a simple access database and
>then used Frontpage 2003 to import the database file and display the
>content in a table on an asp page.
>>
>She was able to open the asp file using this syntax: c:/mysite/db.asp so
>I tried to do the same and it didn't work for me.
>>
>So my question is if this is not how it's supposed to work how in
>the world was she able to open it correctly without using
>http://localhost/mysite/db.asp syntax
>>
>
I would suspect there was some "movie magic". In order for code in an ASP
page to be executed, it needs to be requested via a web server.
>
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
>

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles