Forum Home
Press F1
 
Thread ID: 31705 2003-03-29 11:50:00 ASP on NT Server 4.0 SP4 Erin Salmon (626) Press F1
Post ID Timestamp Content User
131958 2003-03-29 11:50:00 Hi,

I should be able to execute ASP code on a system running NT Server 4.0 with Service Pack 4 no?

When I try to view an ASP page on the server it just prints the ASP source code on the page, instead of processing it into HTML and sending that.

If I view it on a networked PC, it tries to download the ASP File!

What's going on here? Any ideas?

Thanks!

Erin
Erin Salmon (626)
131959 2003-03-29 12:19:00 Well first things first.... you did give the file a .asp extension? I spent about 3 weeks trying to get apache to server php pages for me... the problem was me using a .html extension :O

you're running a webserver that can do asp? eg. IIS. and you've got it configured to be able to serve them.
-=JM=- (16)
131960 2003-03-29 21:55:00 Hi JM,

Yes, .asp file extension. I'm pretty sure it's a configuration problem - I've got IIS 3.0 installed, but there must be a configuration option somewhere to enable or set up ASP. Any ideas where that is?

I've been poking around in Internet Services Manager, which controls user access, logging, and directories of the web server, gopher and ftp.

However, no little "enable ASP" check box.

:P

Erin
Erin Salmon (626)
131961 2003-03-30 01:44:00 I haven't played with IIS 3.0 before but I know that with IIS 5.0 it is preconfigured to call the correct .dll files that it needs to serve the page. I can only presume that it is a problem in this area. -=JM=- (16)
131962 2003-03-30 03:35:00 Hi Erin

From memory, go to the tree. Expand the first notch. Expand the "Default Web-Site" branch. If you right click, it should give a few options. Try Properties ( not sure if you can select this option yet ).
There should be a few tabs to choose from. One will allow you to give a default gateway ( or something ).
You need to make sure it will read the files you want - eg. Default.asp - you are calling it Deafault.asp ( homepage ) aren't you?:|

I would recommend a book called "Beginning Active server pages 3.0 : online support at p2p.wrox.com / David Buser"
Or a similar book called "Beginning Site Server 3.0 / Tim Huckaby"
Just stop by the library and pick one up today.
raddersnz (684)
131963 2003-03-30 03:42:00 Oh and one other key thing to remember. You are actually going through the server aren't you.

I've found myself just opening the .asp in a browser before.
-=JM=- (16)
131964 2003-03-30 04:51:00 Hi,

Where do I locate the "tree"?

Page is called "default.asp", located in C:/webroot/unleash/

Server name is "Server1".

Internet Information Manager locates this with a virtual directory as:

/unleash

So, the page is located at:

server1

This returns my source code. It strikes me that ASP is simply not "turned on" somewhere. There is no reference to ASP in any of the help files with NT, nor with IIS 3.0. However, what appears to be ASP code is talked about in conjunction with .htx, and .idc files.

What've I done wrong?

Cheers,

Erin
Erin Salmon (626)
131965 2003-03-30 10:07:00 Well, Win2k has IIS 5.0. I have used this and had my pages load correctly. I'm not sure how it ( if it does ) really work in ver 3.0.
I had been connecting to the page via http://localhost
localhost should be the default.asp ( or .htm ) page that you defined.
Find in IIS the virtual dirctory, and get its properties dialog. You will have many tabs on which to play around with settings.
GL finding this

radz:p
raddersnz (684)
1