Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check ASP.NET Version loaded on a system?

Tags:

asp.net

How can I check the version of ASP.NET that is installed on my system?

like image 461
vanaja Avatar asked May 11 '11 18:05

vanaja


People also ask

How do I know if ASP.NET 4.5 is installed?

Launch PowerShell as an administrator. Run the command import-module servermanager. ASP.NET 4.5: Run the command get-windowsfeature Net-Framework-45-Core. The output indicates the ASP.NET 4.5 install state ("Installed" or "Available").

How do I determine .NET version?

Open Start. Search for Command Prompt, right-click the top result, and select the Run as administrator option. Type the following command to determine the version of . NET installed and press Enter: reg query "HKLM\SOFTWARE\Microsoft\Net Framework Setup\NDP" /s To make sure that version 4.


2 Answers

You can use

<% Response.Write("Version: " + System.Environment.Version.ToString()); %> 

That will get the currently running version. You can check the registry for all installed versions at:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP

like image 174
keyboardP Avatar answered Nov 12 '22 06:11

keyboardP


You can see which version gets executed when you load the page with Google Chrome + developer tools (preinstalled) or Firefox + Firebug (add-on).

I use Google Chrome:

  1. Open Chrome and use Ctrl+Shift+I to open the developer tools.
  2. Go to the "Network" Tab
  3. Click on the small button at the bottom "Preserve log upon Navigation"
  4. Load any of your pages
  5. Click on the response header

It looks like this:

enter image description here

like image 33
Martin Thoma Avatar answered Nov 12 '22 06:11

Martin Thoma