ASP is not working with IIS

  • kev89431
  • Newbie
  • Newbie
  • kev89431
  • Posts: 14

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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

http://localhost/yourfilename.asp
  • kev89431
  • Newbie
  • Newbie
  • kev89431
  • Posts: 14

Post 3+ Months Ago

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
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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

http://localhost/
  • kev89431
  • Newbie
  • Newbie
  • kev89431
  • Posts: 14

Post 3+ Months Ago

nope, not at all; it says server application error
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

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
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Nice explanation Carnix. That should get him going.
  • Foxy
  • Guru
  • Guru
  • User avatar
  • Posts: 1038
  • Loc: places..

Post 3+ Months Ago

also, get latest patches (oh dear god, IIS so many damn viruses/exploits), a firewall
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

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 15 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.