Quantcast
Channel: Get .NET assembly version for aspx file - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Get .NET assembly version for aspx file

$
0
0

I want to make a "properties style web form" that shows the application version for various .NET applications.

If I know the URL e.g. /someapp/default.aspx is it possible via reflection to execute that page and figure out the assembly version?

It's quite easy to find the executing assembly version, but without modifying the other application, is it possible?

Both the property page and the other application is running on the same server and in the same application pool.

Update: I've had some luck with

var url = "~/SomeApp/default.aspx";var appType = System.Web.Compilation.BuildManager.GetCompiledType(url);

But navigating appType to find the assembly file version is not the same everytime.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>