A way to find out if an application is ASP.NET 1.1 or ASP.NET 2.0

How to determine if an application is ASP.NET 2.0 or ASP.NET 1.1. This is in C #

I do not have source code and I do not have access to IIS Manager. But I can ftp and check the .aspx files. Any ideas?

+3
source share
5 answers

if you can get an error message to show it, at the bottom of the page you will find out which version of the framework is used.

or, if you can download the file, you can load the aspx page containing the code to display the frame 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>

it was just introduced, there may be syntax or other code errors.

+6
source
  • Download the application DLL.
  • Open them with Reflector
  • Parse the dll and find "Depends on"

System.dll( ), , .

+3

2.0 @Page, CodeFile.

, , 2.0.

+2

test.aspx, ; ASP.NET .

: - D

+2

- "X-AspNet-Version"

FireFox -... → → .

Fiddler

Or just use the ViewHtml website here to view the response headers

+1
source

Source: https://habr.com/ru/post/1698343/


All Articles