question

VenkatesanM-4885 avatar image
0 Votes"
VenkatesanM-4885 asked sreejukg answered

How to check asp.net version of the website ?

Please let me is there any way to find the ASP.Net version of Asp.net website and .Net Core websites?

dotnet-aspnet-core-generaldotnet-aspnet-ajaxdotnet-aspnet-spa
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YijingSun-MSFT avatar image
1 Vote"
YijingSun-MSFT answered YijingSun-MSFT edited

Hi @VenkatesanM-4885,
About the asp.net version,you could create a new page and write below codes:

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

About the asp.net core version,what do you want of .NET Core SDK version,.NET Core information,the installed runtimes or the installed SDKs. You could write following commands.

 dotnet --version      // Display .NET Core SDK version.
    
 dotnet --info          //Display .NET Core information.
    
 dotnet --list-runtimes   // Display the installed runtimes.
    
 dotnet --list-sdks       // Display the installed SDKs.

You can view all .NET Core versions Installed on the system by navigating to the installation folder on below path.

 %ProgramFiles%\dotnet\sdk

Also you could check in Solution Explorer. Open the right-click menu for the project that you want to check, and choose Properties, then select Application tab > Target framework.

Best regards,
Yijing Sun


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


If I use the below code its gives the same asp.net version which was showing in the Response header.

But when I check the service manager on the server under Asp.net 3.5 and asp.net 4.6 has been selected.

Because from the administrator mentioned that you have asp.net 2.0 and asp.net 2.2 version on the server. So I am not able to identify which asp.net version that my website is using.

For .net core site - no asp.net version is showing in the response header its showing only ASP.Net

0 Votes 0 ·

Hi @VenkatesanM-4885 ,
If the server application doesn't returned the asp.net version, there is no way to check it from client side.
Best regards,
Yijing Sun

0 Votes 0 ·
sreejukg avatar image
0 Votes"
sreejukg answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.