include file not found?

P

Pierre

Hi guys,

i have this message

Active Server Pages error 'ASP 0126'
Include file not found
/logon/secure.asp, line 2
The include file '/logon.inc' was not found.

It is there!!
this is secure.asp:

<% @language="vbscript" %>
<!--#include virtual="/logon.inc"-->
<html>
<head><title>Secure Page</title></head>
<body>
<h3>Secure 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="defaut.asp">Back to default</a></p>
</body>
</html>

Can someone explain that to me?

Regards,
Pierre
 
A

Andrew Murray

you did publish "logon.inc" file didn't you? that's what the message is
saying that logon.inc was not found - *on the server* in the folder
specified in the script.
 
S

Stefan B Rusynko

See response to your other post




| Hi guys,
|
| i have this message
|
| Active Server Pages error 'ASP 0126'
| Include file not found
| /logon/secure.asp, line 2
| The include file '/logon.inc' was not found.
|
| It is there!!
| this is secure.asp:
|
| <% @language="vbscript" %>
| <!--#include virtual="/logon.inc"-->
| <html>
| <head><title>Secure Page</title></head>
| <body>
| <h3>Secure 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="defaut.asp">Back to default</a></p>
| </body>
| </html>
|
| Can someone explain that to me?
|
| Regards,
| Pierre
|
|
 

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

Top