Reply
Old 10-15-2004, 09:13 PM Using ASP
Junior Talker

Posts: 2
Sorry folks, I'm totally green here. I installed IIS on my Win2000 machine and started up the web server.

Under the wwwroot folder I placed an HTML page called "test.html" and then opened IE and typed in "//localhost/test.html" which promptly opened my test page. However, when I place a simple ASP file called "test.asp" in the same location and type in "//localhost/test.asp" in the IE address bar it returns a page not found error.

My impression is that IIS is not running the ASP script and returning the plain HTML page to the browser when requested. What am I missing or doing wrong??? here is the ASP file:

Quote:
<html>
<body>

<%
response.write("Hello World!")
%>

</body>
</html
Thanks for your help!
Lord Raiden is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 10-17-2004, 11:21 PM
vivekar's Avatar
Webmaster Talker

Posts: 539
There is nothing wrong in the code.

IIS says that it could not find the file. Are you sure that the file is in the same directory?
Is it at C:\Inetpub\wwwroot ?
do you see http://localhost/localstart.asp page when you hit http://localhost/
If not, the IIS is not configured properly.

You can try repairing IIS from the administrative settings.
Otherwise, I suggest you to reinstall the IIS (only) using the Add/Remove programs.
This *may* solve the problem.

Caution: Backup all your files before you do any changes to your system.

Let us know what happens next.
__________________
| Submit URL at All the Websites Directory
| Get Certified in Web Design

Last edited by vivekar : 10-18-2004 at 05:21 AM.
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 10-18-2004, 03:16 PM
Junior Talker

Posts: 2
http://localhost/localstart.asp and http://localhost/ also are not visible whereas http://localhost/postinfo.html works fine. I'm checking into making sure IIS is set correctly with my IT guy. If so I'll re-install it to see if that helps and get back to you with what I've found.

Thanks!
Lord Raiden is offline
Reply With Quote
View Public Profile
 
Old 10-21-2004, 01:18 PM
Araunah's Avatar
Experienced Talker

Posts: 44
You need to be sure that ASP is Enabled in IIS.

Click on IIS, click on your server name, click on web service extension and see if ASP is allowed, if not clicl on ASP and allow. After that, it should work. If your script is an ASP.NET script you will have to download ASP.NET first, install it and do the same thing for you to allow ASP.NET in IIS.
__________________
Araunah Web Technologies:
Webhosting, Zencart Hosting & Zencart Templates.
Araunah is offline
Reply With Quote
View Public Profile Visit Araunah's homepage!
 
Reply     « Reply to Using ASP
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14575 seconds with 12 queries