- Home En
Check if asp.net is working correctly
From time to time it can be required to verify if asp.net is working correctly on the machine where you have deployed the application.
To do this one can use the following sample code that is copied into a file called verify.aspx in the appropriate library in IIS (wwwroot).
<%@ Page Language="VB" %>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Version.Text = "Your server is running the following ASP.NET version " & System.Environment.Version.ToString()
<form id="form1" runat="server">
<asp:Label ID="Version" runat="server"></asp:Label>
Open your browser and type in 'http://www.localhost/verify.aspx'. If it runs and works correctly then everything's fine and the version is written to the browser programmatically!
Resource Central Version, WebTeam Central