asp not executing

I have a database at that I'm trying to make available on the local intranet at work using
asp. When I browse to the page all I see is the asp code.
I have a 2000 server and the physical location of the file I'm trying to open in internet
explorer is:
C:\inetpub\lhsintranet\default.asp

I have wsus and a sharepoint site on this server both of which are working fine.
Incidentally the url of the sharepoint site is http://lhs1/default.aspx
I've tried browsing to C:\inetpub\wwwroot\computers\default.asp in internet explorer and
I've also tried browsing to http://lhs1/lhsintranet/default.asp in internet explorer but it
always just brings up the asp code.
I've tried going at this through MS Frontpage and "publishing" the page and nothing works. I realize there's alot I don't understand about all this and would appreciate any help you
can give me.

JohnBrice,
When I tried accessing it with http://lhs1/lhsintranet/default.asp it brought up the asp code.
I assigned the port 85 to it (being sure that that port was unused first) and entered it as you suggested but now I get "Page cannot be found" I tried a different port as well with the same results. How can I be sure asp is installed and functioning?
Thanks, Karen

yzlat,
In iis I have lhsintranet listed under websites and also under default websites. The icon is a gray folder. In the properties of the one under default websites it has default application listed beside application name with create as an option. I tried creating one called lhsintranet but that didn't help so I deleted it and let it default back to "default application."
I selected scripts and executables in execute permissions. The home dir for this listing is \lhsintranet and can't be changed.

The same options are selected for the lhsintranet listing directly under websites. The icon for this is a dark green globe.
The home dir of this listing are C:\Inetpub\wwwroot\LHSIntranet (which is correct)
and could be changed with the browse button.
Karen

Yes, the "Default Web Site" uses port 80 by default. If you are creating a new "web site", you would need to pick a different port number. Note that there is probably no reason for you to create a new "web site", as a a path within your existing "Default Web Site" is usually adequate.

From your description, I suspect you have created BOTH a new web site and a path within your default web site. You should remove the new web site "dark green globe" and forget about port number.

Note also that your folder or path in IIS does NOT need to be configured as an application for ASP to run (though there are some reasons you might want it to be).

If the test file shows you asp code, check in IIS Manager, right click on "Default Web Site", choose Properties, click the "Home Directory" tab, click "Configuration", and the "Mappings" tab. You must have a line that maps the extension ".asp" to "C:\Windows\system32\inetsrv\asp.dll" with the verbs GET, HEAD, POST, and TRACE.

If you put your folder under C:\Inetpub\wwwroot\, you needn't do anything. Subfolders become part of your Default Web Site automatically.

Reasons for choosing others are:

Vitrual directory -- Lets you point to a folder that is NOT under C:\inetpub\wwwroot and have IIS treat it as if it were. For example you might want your web code to really reside on D:\whatever. You can make a virtual directory so IIS translates http://localhost/MyNewFolder to D:\Whatever instead of looking for C:\inetpub\wwwroot\MyNewFolder.

New Web Site: When you run several web sites off one computer, for example shared hosting services do this so every customer can have their "own" web site.

Success at last!! I wound up creating a separate web again after all and assigning port 85 even though it is located inside wwwroot. Then I made it a virtual dir and now the page opens with this url:
The only thing that differs with your instructions, JohnBPrice, is the location of the folder. I guess I could have put it elsewhere since I'm using the separate port and everything but it works.

As long as you don't care about security, that's fine (it is now technically in both URLs http://lhs1:85 and http://lhs1/lhsintranet ). Also, from your description, something is still messed up on "Default Web Site" as you should never see asp code in your browser.

0

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children.
So, while being a kid is still extremely important, it’s also …

Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program.
Download Eclipse installation zip file:
Extract files from zip file:
Download and install JDK 8:
Open Eclipse and …

In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…