ASP problems

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

Hi group.
I'm interested in learning what .asp pages can do for me, and my first step
is proving troublesome.

I set up a new blank database web in FP2002, and took all of the default
options when the wizard ran.

I now have an index page, a results page, a database editor page and a
submission form page. All well and good, and it just about makes sense.

However, publishing to my ISP gives a warning that the server I am
publishing to does not support .asp

My ISP assures me that this isn't the case, but I just don't know what
questions to ask, and what step to take next.

Would someone more competant than myself take a look at
http://www.steveolive.co.uk/database_interface/Results/submission_form.asp

and tell me if that error message is consistant with a server that doesn't
support .asp, or if it looks like it does support .asp but the default code
from FP is at fault. (which is how I read it)

I'm just looking for a pointer as to where to start digging, but I know so
little at present I'm struggling.

Sorry if this is OT, but I couldn't find a dedicated .asp group on
Freeserve.

Thanks
Steve Olive
 
Steve,

I took a look at the URL that you provided and I received this message:

+++
Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/database_interface/Results/submission_form.asp, line 120

The Include file '../../_fpclass/fpdbform.inc' cannot contain '..' to
indicate the parent directory.
+++

That's great news for you because it's definitely an ASP generated error
which means ASP is installed and configured correctly on your website. The
problem you're seeing is that Parent Paths are disabled on the web server.
This is a standard configuration change which helps ensure that people can't
traverse your server's file directory system (good security practice). I've
seen some argue that it's not necessary any longer, but haven't researched
it myself.

It appears that your submission_form.asp page, on line 120 has an include
statement which, I imagine, may look like this:
<!-- #include file="../../_fpclass/fpdbform.inc" -->

From the error detailed above, you can see that the ../ lines are causing
the grief.

You'll probably want to change the include statement to something like:
<!-- #include virtual="/_fpclass/fpdbform.inc" -->

What's important to know about the virtual keyword is that the first slash
represents the top of the site. That include virtual statement I provided
if converted to a full URL would look like:
http://www.steveolive.co.uk/_fpclass/fpdbform.inc

If that path is incorrect, you'll need to modify it.

Here's one article about includes I found which discusses the differences
betweein #include file and #include virtual:
http://www.w3schools.com/asp/asp_incfiles.asp

For more help on the "Disallowed Parent Path" error, just Google that phrase
and you'll find TONS of hits about it.

As for finding an ASP newsgroup, try connecting directly to Microsoft's news
server:
msnews.microsoft.com

There are several ASP groups there and you'll have better access to regular
ASPers as well as technology specific ASP MVPs (not that we don't have some
very knowledgeable ASP folks here, though.)

Good luck!
 
....FP won't let me edit the code as suggested. It won't let me modify a
component so it changes it back to what it thinks it should be.
Shame.
Off to notepad then ;-)
 
Exactly. Notepad is your friend.

You should be able to right-click on a file within FrontPage and choose Open
With... then select Notepad. I find that editing from within FrontPage like
this keeps things tidier.
 
However, if the page with the webbot is re-opened in FP at a later date, FP
will change it back.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Kevin,

No one said they couldn't do ASP in FrontPage. He's working with a
component that FP won't let him edit directly. That's why we suggested he
open the page in Notepad.
 
Cheers.

|
| >
| > Sorry if this is OT, but I couldn't find a dedicated .asp group on
| > Freeserve.
| >
| > Thanks
| > Steve Olive
| >
| >
|
| Hi Steve.....
|
| For more asp help you might, in addition to the outstanding newsgroups
| already suggested, check out the forum at:
|
| www.4guysfromrolla.com
|
| Really a great asp resource.
|
| Also check out www.aspin.com
|
| Best to you....
| Tom Gahagan
|
|
|
|
 
My point is, instead of doing it in NotePad, just remove all the WebBot
stuff and work in FrontPage. Faster development in a WYSIWYG environment.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
Assuming you understand .asp. Or am I not getting your point?

If he's going to edit the code in NotePad, one would have to assume he
understands ASP enough to do so.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
"Just remove all the webbot stuff and work in Frontpage" sounds easy enough, but whenever I do it I lose my entire field. What exactly has to be removed to stop FP from "fixing" it?

----- Kevin Spencer wrote: -----

My point is, instead of doing it in NotePad, just remove all the WebBot
stuff and work in FrontPage. Faster development in a WYSIWYG environment.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
If FP generates the code, then you can't stop it from "fixing" it

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


AC said:
"Just remove all the webbot stuff and work in Frontpage" sounds easy
enough, but whenever I do it I lose my entire field. What exactly has to be
removed to stop FP from "fixing" it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

asp not supported? 9
ASP, ASP.NET 6
front page asp error message 1
asp form progression 7
password asp not working 12
Frontpage 2003 + ASP + Vista 3
.asp?(word)= web pages 4
frontpage ASP error message 2

Back
Top