ASP is not working with IIS

  • kev89431
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Aug 01, 2004
  • Posts: 14
  • Status: Offline

Post August 29th, 2004, 2:24 pm

I just installed IIS, but somehow it doesn't recognize the asp files. I have the asp files inside the wwwroot folder; when i open it, there's a flash real quick, i can't even see anything. Does anyone know what's wrong?

The thing is right now i'm taking this asp class, and i need to do the exercise & stuff, and my iis is not working in the right way.

thanks in advanced
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 29th, 2004, 2:24 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post August 29th, 2004, 2:46 pm

don't click the file in Explorer. Open it in your browser this way:

http://localhost/yourfilename.asp
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • kev89431
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Aug 01, 2004
  • Posts: 14
  • Status: Offline

Post August 29th, 2004, 10:25 pm

when i tried to open it from the browser, it asks if i wanna save it or choose a program to open it with. i don't wat wrong.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post August 30th, 2004, 12:48 pm

When you type this in your browser do you get the instructions for how to use IIS?

http://localhost/
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • kev89431
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Aug 01, 2004
  • Posts: 14
  • Status: Offline

Post August 30th, 2004, 2:37 pm

nope, not at all; it says server application error
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 28, 2004
  • Posts: 1099
  • Status: Offline

Post September 3rd, 2004, 12:38 pm

Try using a .html file, and see what happens then, for example:

http//localhost/text.html

Make sure there isn't any ASP code in the file.

Something like:
Code: [ Select ]
<html>
hello!
</html>
  1. <html>
  2. hello!
  3. </html>

If it serves up the file, you know IIS is running. If not, first make sure the IIS Admin service is running, and then make sure the W3SVC service is running:

at a command prompt, type:
"net start iisadmin"

then, type:
"net start w3svc"

it *should* say they already running.

Now, rename the file with a .asp extension and try serving it again:
http//localhost/text.asp

Now, change the file to:
Code: [ Select ]
<html>
hello <% Response.Write("world") %>
</html>
  1. <html>
  2. hello <% Response.Write("world") %>
  3. </html>


If you get an error... try reinstalling IIS, because something screwed up.

Also, you might try turning off "Friendly HTTP Error Messages" in Internet Explorer (Tools > Internet Options > Advanced). It displays a meaningless message, but when you turn it off, you'll actually see the real ASP error, which is very helpful, to say the least =]

.c
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post September 3rd, 2004, 4:46 pm

Nice explanation Carnix. That should get him going.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Foxy
  • Guru
  • Guru
  • User avatar
  • Joined: May 14, 2004
  • Posts: 1038
  • Loc: places..
  • Status: Offline

Post September 3rd, 2004, 4:57 pm

also, get latest patches (oh dear god, IIS so many damn viruses/exploits), a firewall
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 28, 2004
  • Posts: 1099
  • Status: Offline

Post September 7th, 2004, 7:00 am

Actually... I'd wait to patch until you get it working...

Foxy is totally correct that you need get all the patches, but if you're having a problem getting IIS running in the first place, patching will add another peice to the puzzle... IIS, vanilla and out of the box, works fine. There are flaws and vulnerabilities, but the core system works... that is, it will serve basic ASP pages with little or no bugs, assuming it's installed successfully.

Once you get the server running, then worry about patching and hardening. That way, if a patch screws something up, you know exactly what you need to roll back, as opposed to removing everything and starting over.

So, I'm not saying Foxy's wrong (quite the opposite actually), I'm just saying you should delay it. Once get it up to current build and have hardened it as needed, however, since your only doing this for a class, you don't need to do much hardening... just install a firewall, Kerio is my personal favorite for Windows, and disable all traffic to port 80 from outside sources, but not local ones, that is, your computer, and make sure no other IIS sites are running... do that, and you'll be ok for the duration of the class.

Let me know if this doesn't make sense to you

.c

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 33 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.