Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



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

Posts: 2
Trades: 0
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
 
 
Register now for full access!
Old 10-18-2004, 12:21 AM
vivekar's Avatar
Webmaster Talker

Posts: 612
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
(Active since 2003) |
Please login or register to view this content. Registration is FREE

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

Posts: 2
Trades: 0
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, 02:18 PM
Araunah's Avatar
Experienced Talker

Posts: 44
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
:
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.23725 seconds with 12 queries