Home All Groups Group Topic Archive Search About
Author
9 Jun 2009 6:21 PM
Nick
Does any one know how to fix this error?

Active Server Pages error 'ASP 0126'

Include file not found

/nick/passwordprotect.asp, line 2

The include file '/logon/_private/logon.inc' was not found.

Author
9 Jun 2009 6:49 PM
Jon Wallace
Hi Nick,

I've seen this before and it was because by default in IIS6, parent paths
were turned off.

On your website, right click and choose configuration, options and then
enable parent paths.

Have a look at this - http://www.aspfaq.com/show.asp?id=2412

If that doesn't help then you might want to check your #include line - see
the last entry here - http://www.webmasterworld.com/forum47/1620.htm

Hope this helps,
Jon

www.insidetheregistry.com
Are all your drivers up to date? click for free checkup

Author
9 Jun 2009 7:19 PM
Nick
Ok I will try to do that and I will get back to you on that.
Show quoteHide quote
"Jon Wallace" <i***@insidetheregistry.com> wrote in message
news:eOVyLMT6JHA.5180@TK2MSFTNGP04.phx.gbl...
> Hi Nick,
>
> I've seen this before and it was because by default in IIS6, parent paths
> were turned off.
>
> On your website, right click and choose configuration, options and then
> enable parent paths.
>
> Have a look at this - http://www.aspfaq.com/show.asp?id=2412
>
> If that doesn't help then you might want to check your #include line - see
> the last entry here - http://www.webmasterworld.com/forum47/1620.htm
>
> Hope this helps,
> Jon
>
> www.insidetheregistry.com
>
Author
9 Jun 2009 7:24 PM
Nick
Ok I tryed that and it didn't work but if it helps the code for the page is

<% @language="vbscript" %>
<!--#include virtual="/logon/_private/logon.inc"-->
<html>
<head><title>Password-Protected Page</title></head>
<body link="#C0C0C0" vlink="#C0C0C0" alink="#C0C0C0" text="#FF0000"
bgcolor="#000000">
<h3>Password-Protected Page</h3>
<p>You are logged on as:
<%
  If Len(Session("UID")) = 0 Then
    Response.Write "<b>You are not logged on.</b>"
  Else
    Response.Write "<b>" & Session("UID") & "</b>"
  End If
%>
</p>
<p><a href="default.asp">Back to default</a>
</body>

Show quoteHide quote
"Nick" <doctore***@thebonavitas.com> wrote in message
news:A450E5F6-74DA-4541-B0D8-8994B6433554@microsoft.com...
> Ok I will try to do that and I will get back to you on that.
> "Jon Wallace" <i***@insidetheregistry.com> wrote in message
> news:eOVyLMT6JHA.5180@TK2MSFTNGP04.phx.gbl...
>> Hi Nick,
>>
>> I've seen this before and it was because by default in IIS6, parent paths
>> were turned off.
>>
>> On your website, right click and choose configuration, options and then
>> enable parent paths.
>>
>> Have a look at this - http://www.aspfaq.com/show.asp?id=2412
>>
>> If that doesn't help then you might want to check your #include line -
>> see the last entry here - http://www.webmasterworld.com/forum47/1620.htm
>>
>> Hope this helps,
>> Jon
>>
>> www.insidetheregistry.com
>>
>
Author
10 Jun 2009 5:32 PM
Neil Gould
Nick wrote:
> Ok I tryed that and it didn't work but if it helps the code for the
> page is
>
> <% @language="vbscript" %>
> <!--#include virtual="/logon/_private/logon.inc"-->
>
Did your logon process ever work? If not, is this path valid, and if so, are
the permissions set properly?

Show quoteHide quote
> <html>
> <head><title>Password-Protected Page</title></head>
> <body link="#C0C0C0" vlink="#C0C0C0" alink="#C0C0C0" text="#FF0000"
> bgcolor="#000000">
> <h3>Password-Protected Page</h3>
> <p>You are logged on as:
> <%
>   If Len(Session("UID")) = 0 Then
>     Response.Write "<b>You are not logged on.</b>"
>   Else
>     Response.Write "<b>" & Session("UID") & "</b>"
>   End If
> %>
> </p>
> <p><a href="default.asp">Back to default</a>
> </body>
>
> "Nick" <doctore***@thebonavitas.com> wrote in message
> news:A450E5F6-74DA-4541-B0D8-8994B6433554@microsoft.com...
>> Ok I will try to do that and I will get back to you on that.
>> "Jon Wallace" <i***@insidetheregistry.com> wrote in message
>> news:eOVyLMT6JHA.5180@TK2MSFTNGP04.phx.gbl...
>>> Hi Nick,
>>>
>>> I've seen this before and it was because by default in IIS6, parent
>>> paths were turned off.
>>>
>>> On your website, right click and choose configuration, options and
>>> then enable parent paths.
>>>
>>> Have a look at this - http://www.aspfaq.com/show.asp?id=2412
>>>
>>> If that doesn't help then you might want to check your #include
>>> line - see the last entry here -
>>> http://www.webmasterworld.com/forum47/1620.htm
>>>
>>> Hope this helps,
>>> Jon
>>>
>>> www.insidetheregistry.com
Author
10 Jun 2009 8:50 PM
Jon Wallace
Hi Nick,

So what happens if you temporaraly rename the logon.inc file to logon.asp
and try to access the file directly from a client browser, do you get any
errors?

Are you sure the permissions on the file are good?  Try the above suggestion
and see what kind of errors you get - your looking for IIS errors rather
than code errors at this point.

Cheers,
Jon

www.insidetheregistry.com

---

Show quoteHide quote
"Nick" <doctore***@thebonavitas.com> wrote in message
news:F622E7D4-7AD9-4FAF-9A7A-7C23F5855FDD@microsoft.com...
> Ok I tryed that and it didn't work but if it helps the code for the page
> is
>
> <% @language="vbscript" %>
> <!--#include virtual="/logon/_private/logon.inc"-->
> <html>
> <head><title>Password-Protected Page</title></head>
> <body link="#C0C0C0" vlink="#C0C0C0" alink="#C0C0C0" text="#FF0000"
> bgcolor="#000000">
> <h3>Password-Protected Page</h3>
> <p>You are logged on as:
> <%
>  If Len(Session("UID")) = 0 Then
>    Response.Write "<b>You are not logged on.</b>"
>  Else
>    Response.Write "<b>" & Session("UID") & "</b>"
>  End If
> %>
> </p>
> <p><a href="default.asp">Back to default</a>
> </body>
>
> "Nick" <doctore***@thebonavitas.com> wrote in message
> news:A450E5F6-74DA-4541-B0D8-8994B6433554@microsoft.com...
>> Ok I will try to do that and I will get back to you on that.
>> "Jon Wallace" <i***@insidetheregistry.com> wrote in message
>> news:eOVyLMT6JHA.5180@TK2MSFTNGP04.phx.gbl...
>>> Hi Nick,
>>>
>>> I've seen this before and it was because by default in IIS6, parent
>>> paths were turned off.
>>>
>>> On your website, right click and choose configuration, options and then
>>> enable parent paths.
>>>
>>> Have a look at this - http://www.aspfaq.com/show.asp?id=2412
>>>
>>> If that doesn't help then you might want to check your #include line -
>>> see the last entry here - http://www.webmasterworld.com/forum47/1620.htm
>>>
>>> Hope this helps,
>>> Jon
>>>
>>> www.insidetheregistry.com
>>>
>>
>
Author
11 Jun 2009 2:55 PM
Nick
Well I think that wouldn't work because other pages are connecting to the
logon.inc file but I will give it a try and tell you If it works.

Show quoteHide quote
"Jon Wallace" <i***@insidetheregistry.com> wrote in message
news:%234PP70g6JHA.1432@TK2MSFTNGP02.phx.gbl...
> Hi Nick,
>
> So what happens if you temporaraly rename the logon.inc file to logon.asp
> and try to access the file directly from a client browser, do you get any
> errors?
>
> Are you sure the permissions on the file are good?  Try the above
> suggestion
> and see what kind of errors you get - your looking for IIS errors rather
> than code errors at this point.
>
> Cheers,
> Jon
>
> www.insidetheregistry.com
>
> ---
>
> "Nick" <doctore***@thebonavitas.com> wrote in message
> news:F622E7D4-7AD9-4FAF-9A7A-7C23F5855FDD@microsoft.com...
>> Ok I tryed that and it didn't work but if it helps the code for the page
>> is
>>
>> <% @language="vbscript" %>
>> <!--#include virtual="/logon/_private/logon.inc"-->
>> <html>
>> <head><title>Password-Protected Page</title></head>
>> <body link="#C0C0C0" vlink="#C0C0C0" alink="#C0C0C0" text="#FF0000"
>> bgcolor="#000000">
>> <h3>Password-Protected Page</h3>
>> <p>You are logged on as:
>> <%
>>  If Len(Session("UID")) = 0 Then
>>    Response.Write "<b>You are not logged on.</b>"
>>  Else
>>    Response.Write "<b>" & Session("UID") & "</b>"
>>  End If
>> %>
>> </p>
>> <p><a href="default.asp">Back to default</a>
>> </body>
>>
>> "Nick" <doctore***@thebonavitas.com> wrote in message
>> news:A450E5F6-74DA-4541-B0D8-8994B6433554@microsoft.com...
>>> Ok I will try to do that and I will get back to you on that.
>>> "Jon Wallace" <i***@insidetheregistry.com> wrote in message
>>> news:eOVyLMT6JHA.5180@TK2MSFTNGP04.phx.gbl...
>>>> Hi Nick,
>>>>
>>>> I've seen this before and it was because by default in IIS6, parent
>>>> paths were turned off.
>>>>
>>>> On your website, right click and choose configuration, options and then
>>>> enable parent paths.
>>>>
>>>> Have a look at this - http://www.aspfaq.com/show.asp?id=2412
>>>>
>>>> If that doesn't help then you might want to check your #include line -
>>>> see the last entry here -
>>>> http://www.webmasterworld.com/forum47/1620.htm
>>>>
>>>> Hope this helps,
>>>> Jon
>>>>
>>>> www.insidetheregistry.com
>>>>
>>>
>>
>

Bookmark and Share