Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 15th, 2005, 03:47 PM
jonaudet jonaudet is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Val-d'Or , Québec
Posts: 22 jonaudet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 59 m 27 sec
Reputation Power: 0
Question Problems seeing ASP through IIS

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.

Reply With Quote
  #2  
Old June 15th, 2005, 04:02 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 16th Plane (12500 - 12999 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 21 m 57 sec
Reputation Power: 1762
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

Reply With Quote
  #3  
Old June 15th, 2005, 07:36 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
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

Reply With Quote
  #4  
Old June 16th, 2005, 10:02 PM
jonaudet jonaudet is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Val-d'Or , Québec
Posts: 22 jonaudet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 59 m 27 sec
Reputation Power: 0
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>

Reply With Quote
  #5  
Old June 17th, 2005, 10:19 AM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 16th Plane (12500 - 12999 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 21 m 57 sec
Reputation Power: 1762
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?
Comments on this post
jonaudet agrees!

Reply With Quote
  #6  
Old June 18th, 2005, 03:22 PM
jonaudet jonaudet is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Val-d'Or , Québec
Posts: 22 jonaudet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 59 m 27 sec
Reputation Power: 0
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.

Reply With Quote
  #7  
Old June 19th, 2005, 06:55 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 9
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.
Comments on this post
jonaudet agrees!

Reply With Quote
  #8  
Old June 28th, 2005, 03:17 PM
jonaudet jonaudet is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Val-d'Or , Québec
Posts: 22 jonaudet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 59 m 27 sec
Reputation Power: 0
Thumbs up

I found the problem while searching on the web. I had installed .Net Framework after IIS. Anyway thank you for your help

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Problems seeing ASP through IIS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT