1,105,221 Community Members

installed IIS yet cannot run asp files

Member Avatar
grii_19
Light Poster
30 posts since Jul 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

i have installled IIS .
but when i try to open up http://localhost ... it says page cannot be displayed .....
what i have to do ....
i even tried with my computer name .. same error page cannot be displayed


using xp pro sp2 ? what do i have to do more ?
any help would be appreciated .
thanks


i have no clue abt asp just started first day today
so looking for as much help i cna get

Member Avatar
jbennet
Moderator
17,127 posts since Apr 2005
Reputation Points: 1,618 [?]
Q&As Helped to Solve: 736 [?]
Skill Endorsements: 38 [?]
Team Colleague
Featured
 
0
 

call your web page index.asp and put it in the web directory (i think its c:\ wwwroot) and try again

Member Avatar
grii_19
Light Poster
30 posts since Jul 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

hey thx mate for the help ..
but it didnt helped ..
wonder why it yet syas page cannot be found

Member Avatar
zhk
Newbie Poster
4 posts since Dec 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

try and see if you can browse by http://127.0.0.1

Also open up the services panel...
click Start -> Run type "services.msc" this will bring up your services panel. check to see it IIS services are running. While at this panel also check to see if WWW or web publishing is their if it is check if it is running. Otherwise, turn them on.

If all is good then click Start->Control Panel->Computer Administrative Tools->Internet Information Services
In IIS console expand the plus sign to "Default Website" Right click select properties. in Documents tab if you do not see index.asp or default.asp -- Add them and click OK. Check to see if your pages can be displayed now.

Make sure us are logged in as Administrator
Good Luck
-----------------------------------------------------
Use my suggestion at your own risk... zhk
-----------------------------------------------------

Member Avatar
grii_19
Light Poster
30 posts since Jul 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

after going thru this link :-- http://www.razorx.com/tutorials/IISonXPPro/

i got the http://localhost ... working the message it shows is "Cool! My own server home page. "

but yet i am unable to run the .asp files wonder why ?
any more help can i get ?

Member Avatar
hielo
Veteran Poster
1,131 posts since Dec 2007
Reputation Points: 55 [?]
Q&As Helped to Solve: 246 [?]
Skill Endorsements: 0 [?]
 
0
 

Open the properties window for the website in question ( the fifth image from top to bottom on the step-by-step tutorial at http://www.razorx.com/tutorials/IISonXPPro/).

Then click on the "Home Directory" tab. Make sure that "Execute Permissions" is set to "Scripts Only" at the very least.

If after this, the problem persists, on that same tab, click on the "Configuration" button.

Then on the pop-up window you will see three tabs. You need the one labeled "Mappings". Make sure that under "Application Mappings" you have ".asp" listed in extensions. If it is not there then it was not registered properly when you installed IIS. So you would need to re-install IIS.

Member Avatar
grii_19
Light Poster
30 posts since Jul 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

i am totally clueless yet ....

do i need anything more then IIS ? xp pro sp2
even the localhost


this is the message i get for http://localhost ( http://127.0.0.1 )"Cool! My own server home page. " --- but this can be de to the html code
{{{ Using Notepad or Dreamweaver, just write a simple index.htm test document and then save it into your C:\Inetpub\wwwroot directory.

<html>
<head>
<title>Home page test</title>
</head>
<body>
<div align="center">Cool! My own server home page.</div>
</body>
</html>
}}}
or do we need this code

i am all at bay as of now yet --- i tried what hielo and zhk said till now ? any more help
am i missin sumthing ??

Member Avatar
swaters86
Light Poster
25 posts since Jul 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Label me no asp expert because I usually deal with aspx pages but let me try to help.

possible solution #1: Did you create a application out of your site folder located in your wwwroot directory? If not go to IIS and click on your site. If it doesn't display as a small icon of an open box with a small world inside it, then it's not an application. in other words, the icon will display as a plain vanilla folder.

If that's the case, then right click on your site and click on properties. Go down to where it says application name and click on 'create'. After that click on the 'documents' tab and add your default pages. For example yours would be 'index.html.' try that or...


possible solution #2: You might have to have to map the htm extension to the httpHandlers element in your Web.config file since it's probably not already mapped.

adding <add path="*.htm" verb="*" type="System.Web.StaticFileHandler" /> to that element should work.

BTW, I'm not a genius,...I got the the second possible solutions from this link:
http://support.microsoft.com/kb/909641


just in case you don't have the handlers because I just checked some of my webconfig files on my work computer and didnt have them, you might be able to get a way with adding this to your webconfig file :

<httpHandlers>
<add path="*.htm" verb="*" type="System.Web.StaticFileHandler" />

</httpHandlers>

Here's the link that explains how to do that: http://www.15seconds.com/issue/020417.htm

Member Avatar
hielo
Veteran Poster
1,131 posts since Dec 2007
Reputation Points: 55 [?]
Q&As Helped to Solve: 246 [?]
Skill Endorsements: 0 [?]
 
0
 

IF all you see on the browser is:
Cool! My own server home page.

Then your server is running correctly. The browser will not display the HTML markup. As a matter of fact, if you really want to see the html markup, open your page via Firefox and hit Ctrl+U to view the HTML, OR in IE, click View > source.

Member Avatar
grii_19
Light Poster
30 posts since Jul 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

hey hielo ....

but the query yet aint solve
i yet cant rus the asp files ...


how do i get them working ... ?

Member Avatar
Shailesh25
Newbie Poster
16 posts since Dec 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

check whther the IIS is running
check whther u have created a virtual directory
if virtual directory is created then
put html file into it and run it on browser.
if it is running then rename its extension to asp and check whther it is running or not?
It must run. else let me kmw.

Member Avatar
grii_19
Light Poster
30 posts since Jul 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

@ shailesh

i am new to asp so some stuff u said was over my head stuff .....

the IIS is runnin -- i checked it

virtual directory ? whatz tht and how to create one

Member Avatar
Shailesh25
Newbie Poster
16 posts since Dec 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

right click on default web site and then new and virtual entering data and then next...

Member Avatar
grii_19
Light Poster
30 posts since Jul 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

shailesh

it works when ran in htm (not when html extension )
and it doesnt work when i change it to .asp ... shows page cannot be display error again

Member Avatar
Shailesh25
Newbie Poster
16 posts since Dec 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

give me the url that u typed in browser.
the whole location of the asp file.

Member Avatar
Shailesh25
Newbie Poster
16 posts since Dec 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

give me the url u specified in the browser.
and also the real location of the asp file.

Member Avatar
jbennet
Moderator
17,127 posts since Apr 2005
Reputation Points: 1,618 [?]
Q&As Helped to Solve: 736 [?]
Skill Endorsements: 38 [?]
Team Colleague
Featured
 
0
 

why double post?

Member Avatar
grii_19
Light Poster
30 posts since Jul 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

http://localhost/myfirstpage.htm
http://localhost/myfirstpage.asp


<html>
<head>
<title> title of page </title>
</head>
<body>
this is my first home page<br>
<b> this text is bold </b>
<h1> heading 1 </h1>
<h6> heading 6 </h6>
</body>
</html>

the asp content whihc i tried was from text book of current time
and u said before i even changed the extension of the above to asp and try to run but yet page cannot be displayed

Member Avatar
Shailesh25
Newbie Poster
16 posts since Dec 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

Background:
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

r u getting this type of error message

Member Avatar
grii_19
Light Poster
30 posts since Jul 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

hmmmm naah ...

i never got any error message ...

only page cannot be displayed so have no clue whatz wrong or whatz more needed to run asp

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article