Have installed IIS, .Net Framework, but still my simple asp.net page won't work.
I keep getting an error saying that I haven't got vb installed on the server.
Any ideas??
Have installed IIS, .Net Framework, but still my simple asp.net page won't work.
I keep getting an error saying that I haven't got vb installed on the server.
Any ideas??
By the way,
this is my code:
<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 server land the time is currently:
<asp:label id="time runat="server" />
</body>
</html>
Are you using visual studio or coding by hand?
Last edited by Mart; 05-12-2003 at 02:58 PM.
cheers mate, have changed that but it still doesn't work.
I don't think that there should be a problem with the code - i copied it out of a book.
is there likely to be a problem with my setup. the .net framework does contain everything I should need doesn't it?
I just tried your code in my IIS and it worked fine.
Has your file got an .aspx extension ?
I tried it with .asp and get the error your describe.
Cheers, found a missing "
and moved folder that the file was in.
Will have a play with file structure later.
But not as great as PHP
Twigman
Unfortunately I'm developing a system for the RAF, and for the foreseeable future they love micros**t. That means access/sql server and asp .
Lets hope they wake up to opensource pretty soon. (I think the french government has made the switch recently)
PHP maybe better than ASP but ASP.NET is far better than both. String typing, intellisense and the compiler make life a lot easier.
I've suddenly become all confused
What's the difference between asp and asp.net
Mart, you mentioned a compiler, but I didn't have to compile the code above, and I didn't compile the asp stuff I did a couple of years ago.
I'm coding by hand, using dreamweaver MX for the visual stuff
You don't have to explicitly compile the code for the page you have. The default behaviour for ASP.NET is to use just in time conpilation when the page is first requested.
You may notice a delay when you first visit your page but not on subsequent visits. The delay is due to the JIT compiler, it actually creates a temporary .dll file that represents your aspx page.
Each time the page is requested ASPNET checks to see if the timestamp on the aspx page is different to the compiled one. If they differ it recompiles the page.
If you add int n = 100/0; somewhere in your code you should get the compilation error page returned.
If you get a runtime error whilst loading your page the error page returned has a link to the path of the temp dll.
I have to confess I know next to nothing about php5 so looks like a new thread would be a good place to start.
ASP and ASP.NET
ASP is an older technology, files have .asp etension, server side code is normally vbscript
ASP.NET is a newer technology, files have .aspx or .asmx extension. Server side code written in any of the .NET languages (c#, VB.NET)
Both can co-exist on the web server, IIS routes the incoming requests to the correct one by using file extensions.
There are currently 1 users browsing this thread. (0 members and 1 guests)