Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New IIS server won't run asp ......I've worked this one for hours 1

Status
Not open for further replies.

jbs

Programmer
Feb 19, 2000
121
US
After spending time with Perl I thought I'd checkout asp and boy did I run into an interesting system problem.&nbsp;&nbsp;I suspect I've done something real wrong that's rather basic and fundamental.<br><br>I've spent several hours trying to figure this one out.....I know I'm at the point where I need to 'ask for directions'.<br><br>I recently took a fresh workstation, loaded Windows NT Server 4.0.&nbsp;&nbsp;Then loaded SPS-3.&nbsp;&nbsp;Then loaded Option Pack 4.<br><br>I then created a html page called &quot;linkpage&quot; which links to a webpage called &quot;welcome.asp&quot;.&nbsp;&nbsp;The code for &quot;welcome.asp&quot; is listed below (...and is also, I confess,&nbsp;&nbsp;on page 5 of the book called &quot;Active Server Pages for Dummies&quot;).&nbsp;&nbsp;<br><br>Here is the code for &quot;welcome.asp&quot;:<br><br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Hello and welcome&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;center&gt;<br>&lt;% Dim ftsize, ftcolor %&gt;<br>&lt;% For ftsize = 1 To 7 %&gt;<br>&lt;font size = &lt;%=ftsize%&gt;&gt;<br>Hello and Welcome!&lt;br&gt;<br>&lt;% Next %&gt;<br>&lt;/center&gt;<br>&lt;h3&gt;It is &lt;% =WeekdayName(Weekday(Date)) %&gt;, &lt;% = Date %&gt;.<br>The time is now &lt;% = Time %&gt;, &lt;p&gt;<br>&lt;/h3&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br>I'm supposed to get a series of seven lines of text that each say &quot;Hellow and Welcome&quot;...each line repeated but with a larger font size.&nbsp;&nbsp;The page is also supposed to give the day, date, and time.<br><br>The 'asp' aspects of the file &quot;welcome.asp&quot; don't seem to want to execute.&nbsp;&nbsp;Here is what I do get?<br><br><br>&quot;<br>&gt; Hello and Welcome!<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It is , . The time is now ,&nbsp;&nbsp;&nbsp;&nbsp;&quot;<br><br><br>I've checked that I've written the code correctly as documented in the book.&nbsp;&nbsp;I loaded the code in the c:\InetPub\ folder.&nbsp;&nbsp;I accessed the file by going into the &quot;linkpage.html&quot; file and then linked to &quot;welcome.asp&quot;.&nbsp;&nbsp;I've confirmed that the &quot;World Wide Web Publishing Service&quot; is started by checking the list of services that are running on the server from the control panel.<br><br>I checked the event viewer and there were no entries on either the application, security, or system logs.<br><br>I suspect that the asp code is fine but that something else is wrong with my server.??!!??<br><br>Any ideas?<br><br>Thanks,<br><br>Jerry<br>
 
Does the default web site work?&nbsp;&nbsp;You should just be able to connect to <A HREF=" TARGET="_new"> should get the default web page.<br><br>FYI - although your code works as posted,&nbsp;&nbsp;you should know that it's better to prevent context switching&nbsp;&nbsp;between ASP and HTML. You performance will be better. For example, don't delimit each line of VBScript.&nbsp;&nbsp;This type of approach will be more efficient:<br><br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Hello and welcome&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;center&gt;<br>&lt;% <br>Dim ftsize, ftcolor <br>For ftsize = 1 To 7 <br>&nbsp;&nbsp;response.write &quot;&lt;font size = &quot; & ftsize & &quot;&gt;Hello and Welcome!&lt;br&gt;&quot;<br>Next<br>response.write &quot;&lt;/center&gt;&quot;<br>response.write &quot;&lt;h3&gt;It is &quot; & WeekdayName(Weekday(Date)) & &quot;,&quot; & Date & &quot;.&quot;<br>response.write &quot;The time is now &quot; & Time <br>%&gt;<br>&lt;p&gt;<br>&lt;/h3&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br> <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
Still stuck.&nbsp;&nbsp;This is getting interesting.&nbsp;&nbsp;I've entered in the above code change and still have the same problem.&nbsp;&nbsp;As discussed via email the problem seems centered around the IIS installation not having all of the required components installed (thank you Nick!).<br><br>I went to micosoft web page which recommends a specific sequence for installation IIS (<A HREF=" TARGET="_new"> followed the installation sequence which is:<br><br>1)&nbsp;&nbsp;Reformated the disk (this is a stand-alone server...no problem)<br><br>2)&nbsp;&nbsp;Install NT Server 4.0<br>3)&nbsp;&nbsp;Install Service pack 3<br>4)&nbsp;&nbsp;Install Internet Explorer 4.01 Service Pack 2<br>5)&nbsp;&nbsp;Install Windows NT 4.0 Option Pack (..I used typical install....did I miss something here?)<br>6)&nbsp;&nbsp;Re-apply the latest service pack (3)<br>7)&nbsp;&nbsp;Install latest service pack (I installed 3 thru 5).<br>8)&nbsp;&nbsp;Install MDAC 2.1 SP2<br>9)&nbsp;&nbsp;Install &quot;updated windows scripting components&quot;<br><br>I still can't run an asp.&nbsp;&nbsp;I get the same error (i.e. it seems to just no execute any asp commands and executes everything else.&nbsp;&nbsp;I'm not even getting any script errors).<br><br>I suspect that I haven't installed something that is key to asp's.&nbsp;&nbsp;But I might be on the wrong track.<br><br>Any ideas?<br><br>Jerry<br>
 
More info on this problem.....<br><br>I just loaded Windows Server 2000 onto my system.&nbsp;&nbsp;I used the standard installation (iis comes up automatically).<br><br>I'm getting the same symptoms!!<br><br>My browser just ignores the asp command lines.<br><br>Any ideas?<br><br>jerry
 
Jerry,<br>&nbsp;&nbsp;&nbsp;It just dawned on me that these components aren't in the standard IIS installation.&nbsp;&nbsp;They're in the IIS resource kit. <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
Thanks Nick!!<br><br>I'll go see if I can download or buy it this am.<br><br>Thanks,<br><br>Jerry
 
Is the IIS resource kit the same as the NT Serve 4.0 Resource Kit?
 
Problem solved !<br><br>IIS configuration error <br><br>Thanks you Nick!!<br><br><br>/jerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top