Author |
Topic |
|
The Zim
Junior Member
107 Posts |
Posted - 14 April 2009 : 12:05:58
|
I'm trying to figure out how to convert all of my HTML pages to ASP, but I am having trouble...
Here is my site's file system (the file I'm testing is todo.asp, I'm only including the files and folders that are affected by this MOD):
{host}/zimsgizmos/ File: -->todo.asp Folders: -->pages -->forum
{host}/zimsgizmos/pages/ File: -->todo.asp (I've got another copy here, this is where I would like them to be ultimately)
{host}/zimsgizmos/forum/ Files: -->inc_login.asp (came with MOD) -->inc_header.asp (the modified one)
I keep on getting error messages with every thing I've tried. They all point to line 3 of todo.asp. Here's the message:
Active Server Pages error 'ASP 0126'
Include file not found
/zimsgizmos/todo.asp, line 3
The include file '/forum/inc_login.asp' was not found.
Here is what I have in todo.asp (lines 1-13):
<%
%>
<!--#INCLUDE VIRTUAL="/forum/inc_login.asp"-->
<!--#INCLUDE VIRTUAL="/forum/config.asp"-->
<!--#INCLUDE VIRTUAL="/forum/inc_sha256.asp"-->
<!--#INCLUDE VIRTUAL="/forum/inc_func_common.asp"-->
<!--#INCLUDE VIRTUAL="/forum/inc_header.asp"-->
<%
response.write " <html>" & vbNewline & _
response.write " <head>" & vbNewline & _
response.write " <link rel=""shortcut icon"" href=""favicon.ico"" >" & vbNewline & _
response.write " <title>The Zim's To-Do List | Zim's Gizmos</title>" & vbNewline & _
response.write " <style type=""text/css"">" & vbNewline & _
I have been testing them in both places. First I tried it with the includes as ../forum/{file}.asp. I tried that in the pages folder. Then when I got an error saying that the .. was not allowed, I changed it to /forum/{file}.asp that I put in both the root (/zimsgizmos/todo.asp) and inside the pages folder. That did not work either.
Now, I have tried forum/{file}.asp in both the root and the pages folders and that does not work either. It comes up with the same error as the /forum/{file}.asp. I am not sure what to do. Can someone help please? I'm going to try changing the INCLUDE VIRTUAL to INCLUDE FILE and see if that works. I'll post again to let you know... |
|
|
The Zim
Junior Member
107 Posts |
Posted - 14 April 2009 : 12:10:19
|
I have tried the INCLUDE FILE instead of the INCLUDE VIRTUAL for the forum/{file}.asp. It does not work in the pages folder; however, it comes to a different error in the root. That error is:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/zimsgizmos/todo.asp, line 10
response.write " <head>" & vbNewline & _ ---------------^
If anyone knows how to fix THAT error, I'd appreciate that as well, lol. |
|
|
|
The Zim
Junior Member
107 Posts |
Posted - 14 April 2009 : 12:12:50
|
I've tested the /forum/{file}.asp. That comes up with the following error in both places:
Active Server Pages error 'ASP 0130'
Invalid File attribute
/zimsgizmos/pages/todo.asp, line 3
File attribute '/forum/inc_login.asp' cannot start with forward slash or back slash.
NOTE: That is how the MOD tells me to do it in the ReadMe, with the /forum/{file}.asp!! |
|
|
|
The Zim
Junior Member
107 Posts |
Posted - 14 April 2009 : 12:13:58
|
I don't have time to test the last one now, but I'll edit this reply with those results later. |
|
|
|
KC
Junior Member
USA
152 Posts |
Posted - 14 April 2009 : 13:31:21
|
You can't Include a file on IIS with a path below your current path. Just put the include file in your current dir and use <!--#INCLUDE FILE="inc_login.asp"-->
|
Owner of vales.com and Elite Computers. |
|
|
The Zim
Junior Member
107 Posts |
Posted - 14 April 2009 : 13:43:37
|
Ok, WHAT? lol. Sorry, I don't get what you mean... You want me to put my main pages inside my forum folder? That's what I would really like to avoid at all costs... So, you say I can't have a file in the root that points down to the forum? But that's the one I've gotten to work the best, lol. I just need to refine the rest of the "asp" code so it will work... The stuff after the include virtuals in the code I put in there is pretty much default the rest of the way through the page... The only difference is that I have a %> at the end of the page... |
|
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 15 April 2009 : 04:40:57
|
You need to change a setting in your IIS; see here.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
The Zim
Junior Member
107 Posts |
Posted - 15 April 2009 : 08:54:29
|
Ok, thanks! I'm not hosting my site on my own quite yet, so I'll have to keep this in mind when I do get my server up and running |
|
|
|
|
Topic |
|