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, 02: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, 03:02 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 13,239 mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Day 20 h 18 m 30 sec
Reputation Power: 2037
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:
Pretension: The downside of being better than everyone else is that people tend to assume you're pretentious.

Questions to Ponder:
You can be overwhelmed and underwhelmed, but why can't you be simply whelmed?

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, 06: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 5 Days 9 h 16 m 25 sec
Reputation Power: 182
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, 09: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, 09:19 AM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 13,239 mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)mehere User rank is General 16th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Day 20 h 18 m 30 sec
Reputation Power: 2037
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, 02: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, 05: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 49 m 54 sec
Reputation Power: 10
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, 02: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





 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

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





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek