|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have IIS 5.1 on my computer and I am on windows XP Pro.
When I try to see ASP pages that are located in the Inetpub/wwwroot/ folder all I get is the code (as if I was looking at an XML document). How do I get to see my pages right. ![]() |
|
#2
|
||||
|
||||
|
i don't think it should be showing you the code ... if it's all ASP, then it should just give you page not found ... if there's html on it, that should display in the browser. this has, of course, been my experience.
can you post the code of one of your pages that you're trying to display?
__________________
Come JOIN the party!!! Quote of the Month: Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use. Questions to Ponder: What do you do when you see an endangered animal eating an endangered plant? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#3
|
|||
|
|||
|
Use the IIS management console and make sure the folder has script execute permissions granted.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#4
|
|||
|
|||
|
This is the code I have been trying to run :
<% Option Explicit%> <html> <title>temps</title> <body> <% Public sub message(dtHour) If dtHour<=12 then response.write "Good Morning!" elseif (dtHour>12) And (dtHour<17) then response.write "Good afternoon!" else response.write "Good Evening!" end if end sub %> <% dim dtHour,iCount dtHour = DateAdd("h",-4,Now) response.write dtHour & "<br />" message(dtHour) For iCount = 1 to 24 response.write DateAdd("h",iCount,Now) & "<br />"_ message(DateAdd("h",iCount,Now)) & "<Br />" next %> </body> </html> |
|
#5
|
||||
|
||||
|
Is that the whole page?
If so, you're missing: Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> at the very top of the page. Just a thought, but it does have a file extension of .asp right? |
|
#6
|
|||
|
|||
|
it does have the .asp extension
as for the Laguage="VBScript" I tried viewing the file through a remote server that supported ASP and it worked without this precision, since vbscript is the default language for ASP. |
|
#7
|
||||
|
||||
|
jon: The <@Language="VBscript"%> header is optional but its good practice to include it anyway because some servers have JScript as the default language.
Anyway, the only real reasons why the ASP file won't be parsed are: a) Folder/Virtual/Application doesn't have Scripting permissions b) *.asp isn't given the correct ISAPI Extension c) Scripting is disabled on the system (check your anti-virus software) d) Your NTFS/IIS ACLs specify you don't have execute permissions That's all I can think of. |
|
#8
|
|||
|
|||
|
I found the problem while searching on the web. I had installed .Net Framework after IIS. Anyway thank you for your help
![]() |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Problems seeing ASP through IIS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|