|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
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. 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 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 > 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 >> > Nick wrote:
> Ok I tryed that and it didn't work but if it helps the code for the Did your logon process ever work? If not, is this path valid, and if so, are> page is > > <% @language="vbscript" %> > <!--#include virtual="/logon/_private/logon.inc"--> > 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 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 >>> >> > 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 >>>> >>> >> >
ASP.NET and HTML
pass stored procedure parameters in asp create and send a form server side How to host a site on a closed network Clueless in 80040e31 land Select INTO, UNION technology choice Getting input in Multi Laguage II6 -> II7 with classic ASP Include Files > asp to aspx - vbscript to vb.net |
|||||||||||||||||||||||