[AccessD] OT: ASP.net not working

jcolby at colbyconsulting.com jcolby at colbyconsulting.com
Thu Jul 24 22:55:59 CDT 2003


I went to an ASP.net message board and asked.  The answer was to run:
aspnet_regiis.exe -i.

That worked.

John W. Colby
www.colbyconsulting.com

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark
Sent: Thursday, July 24, 2003 7:46 AM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] OT: ASP.net not working


John,

Here is the same script from
http://www.w3schools.com/aspnet/aspnet_events.asp.  It differs minutely from
yours.

Mark


<script runat="server">
Sub Page_Load
lbl1.Text="The date and time is " & now()
End Sub
</script>
<html>
<body>
<form runat="server">
<h3><asp:label id="lbl1" runat="server" /></h3>
</form>
</body>
</html>



-----Original Message-----
From: jcolby at colbyconsulting.com [mailto:jcolby at colbyconsulting.com]
Sent: Wednesday, July 23, 2003 11:08 PM
To: AccessD
Cc: VBA
Subject: [AccessD] OT: ASP.net not working


Folks,

I'm working through the very first real example of an asp.net page doing
something, i.e. displaying the time from the web server.

I have IIS running, ASP.net installed (in fact the entire Visual Studio.net
installed), the .net framework installed etc.  The code for the web page is:

<script language="vb" runat="server">
Sub Page_Load()
time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
End Sub
</script>

<html>
<head><title>The Punctual Web Server</title></head>
<body>
  <h1>Welcome</h1>
  In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html


That's all there is.  When I run it, the expected text is displayed but the
time is not.  The book ("Beginning ASP.net 1.0 with VB.Net" from Wrox) gives
a less than helpful "if the time is not displaying then you might have
mis-typed the code".  I downloaded the examples from the web site and the
code in the example above exactly matches the code in the book.

Further I went into Visual Studio.net and built a web page application.  I
then pasted the relevant code into the web page generated for me by ASP.net.
Again, when run the expected text is displayed but not the time.  This seems
to indicate that the IIS server isn't correctly calling the .net framework
and getting results back from it but I am at a loss to troubleshoot it.

Any ideas why this wouldn't work?

John W. Colby
www.colbyconsulting.com


_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list