Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check the ASP .NET MVC version running on a server with a .aspx file?

For example, for the .NET Version I solved with this:

"The .NET version is " : <%= System.Environment.Version.ToString()%> 

But what about the ASP .NET MVC version?

Thanks in advance!

like image 871
Cacho Santa Avatar asked Jan 13 '12 19:01

Cacho Santa


1 Answers

typeof(Controller).Assembly.GetName().Version
like image 159
SLaks Avatar answered Sep 29 '22 02:09

SLaks