View Full Version : ASP in PWS?
EasilyBefuddled
09-05-2002, 09:19 PM
I'm trying to run a hit counter on Microsoft Peer Web Services. I've tried to get it running via an SSI include (using the #exec command), but apparently that won't work on Windows. I'm now trying to set it up using ASP, but whenever I attempt to use one of the ASP test scripts I find (usually provided in a tutorial for the sole purpose of verifying that your server can run ASP), it does not work. Is it even possible to have PWS that isn't naturally configured for ASP, and if so, how would one go about configuring it? Or what else could I be missing elsewhere?
One of the test scripts I've run that does not work:
<% Option Explicit %>
<%@ Language="VBScript" %>
<!--- This page should display "ASP is working!" -->
<!--- if ASP is available to you. -->
<HTML>
<HEAD>
<TITLE>ASP Test Page</TITLE>
</HEAD>
<BODY>
<% Dim TestString %>
<% TestString = "ASP is Working!" %>
<H1>
<% Response.Write TestString %>
</H1>
</BODY>
</HTML>
Any input is appreciated. Thank you.
That code looks really weird.
If you want to test if your server can run asp, just insert the line of code below, between the body tags of a html-file + save the file with extension .asp on that server + open a browser and then type in the url to this file
Off yours, you also have to set up a new website on your PWS or IIS. (i suppose you mean the Personal Web Server and that you have a Windows 98 or Millnnium machine. If your running 2000 or NT it will be the IIS ,that runs the sites)
You best check the Windows helpfunction and search for PWS. If i'm not mistaking, the PWS productdocumentation is build with asp, so you immediatly see if your machine can run it.
<% response.write("This is really working !") %>
It should display the line This is really working !
EasilyBefuddled
09-06-2002, 05:48 PM
Thank you for the input.
I'll try that code shortly, although it resembles other code I've already tried. I offered up my most recent .asp attempt above, but not my only .asp attempt, but I'm hoping that what you said works.
I'm running PWS off an NT Workstation.
I found some .asp file documentation, but it was in a folder IISadmin. Regardless, when I opened it (both by double-clicking directly on the file and by going through IE and using the Open command), the file opened in the Microsoft Development Environment instead of parsing. I'll try accessing the files through PWS and seeing if that changes anything.
Thanks again for the input. This should sort itself out shortly.
EDIT:
I tried the code above, and it didn't work. Thanks, though. I also set up the IISadmin folder as a virtual directory on PWS, and on my default PWS page put a link to the default .asp page in that directory. When I clicked on the link, it offered me the option of saving the file or opening it, and opening it once again opened Microsoft Development Environment. I think its safe to say that my computer is not configured to parse .asp files. The question then becomes how can I fix that?
"opening" a file by clicking it in your explorer, cann't work. You need to browse the file.
to do this, you need to save the file, create a new site (control panel, administrative tools, Internet Services Manager, (right click)default web site, new ). Than you create a virtual directoty (lets say 'test' with these files in. Then you open a browserwindow + insert following url : localhost/test/file.asp where test=name virtual directory and file.asp=the name of the aspfile
scroots
09-17-2002, 07:05 PM
i had the same problem run PWM (personal/peer web manager) and you will need to start the service, when its running you can view asp pages, via http://127.01.01/ like you would get on the internet.
scroots
Mhtml
09-19-2002, 09:44 AM
I whent through exactly the same thing when I started asp on pws a month or two ago, even to this date i can only use 127.0.0.1 as localhost will not work in IE but will in NS and I hate NS....lol
EasilyBefuddled
09-20-2002, 07:18 PM
Thanks for the input. As far as browsing the page, I had created a regular html page with a link to the asp page, and I would open http://localhost/html page and click on the link to check the asp page, and that wasn't working. I'll see if using the 127.01.01 works. Its all kind of moot now, as while it wasn't working on my computer, I was the person doing some coding and testing, and the computer that I was testing for was able to handle everything fine. I don't know what the difference was, but go figure...
scroots
09-20-2002, 08:51 PM
its do to with you PC name, on my pc http://localhost/ doesn`t work. http://127.01.01 refers to an IP which is the same for all PC`s so that works. My computer is called oemcomputer so http://oemcomputer/ works for me. To find out what your computer is called go into PWM and click start an it will tell you.
scroots
Mhtml
09-21-2002, 03:25 PM
won't work for me, my computer name is small and http://small just will not work...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.