Support
Login
Your Password

Sales
North America
Phone: +1 (905)-655-9262
Fax: +1 (905)-655-9395
Email: info@add-on.com

Europe
Phone: +45 7944 7000
Fax: +45 7944 7001
Support
Denmark
+45 7944 7002

Europe
+44 (0) 203 002 3889

North America
+1 (202)-536-4165
Knowledgebase: Resource Central
Check if asp.net is working correctly

Symptoms

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.

Resolution

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" %>
<script runat="server">
    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()
    End Sub
</script>
<html>
<head>
    <title>ASP.NET Version</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:Label ID="Version" runat="server"></asp:Label>
    </form>
</body>
</html>

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!

Properties

Resource Central Version, WebTeam Central


Attachments 
 
 verify.aspx (0.47 KB)