Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Way to tell if an app is ASP.NET 1.1 or ASP.NET 2.0

Tags:

asp.net

How can I tell if an App is ASP.NET 2.0 or ASP.NET 1.1. This is in C#

I don't have the source code and I don't have access to IIS Manager. But I can ftp and check the ASPX files. Any Ideas?

like image 386
Brian G Avatar asked Jan 21 '26 02:01

Brian G


1 Answers

if you can get an error message to show it will tell you at the bottom of the page what version of the framework is in use.

or, if you could upload a file, you could upload an aspx page containing code to output the framework version:

<%@ Page Language="C#" EnableSessionState="False" EnableViewState="False" Trace="False" Debug="False" %>

<script language="C#" runat="server">

protected void Page_Load(object s, EventArgs e)
{
    Response.Write(System.Environment.Version);
}
</script>

this was just typed in, there could be syntax or other code errors.

like image 122
John Boker Avatar answered Jan 22 '26 16:01

John Boker