Link to home
Start Free TrialLog in
Avatar of Marcelo Camarate
Marcelo Camarate

asked on

ASP.NET get assembly Version

Hi all,

How can I get the assembly version of the VB ASP.NET that appears in "Programs and Features". To clarify, the language that I'm using is Visual Basic.NET.

Thanks, Camarate
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Is it Windows 7? It would be 3.5 probably.
Avatar of Marcelo Camarate
Marcelo Camarate

ASKER

Hi CodeCruiser, Thanks for your reply.

Initially yes. Why? Is there any difference between the Operational Systems to get this information?

Regards, Camarate
The reason I said that was that Win7 comes with .NET 3.5 preinstalled. If you are talking about Programs list (Add/Remove programs) the version is displayed in the title of the program.
Hi CodeCruiser, Thanks for your reply.

Sorry but I think that I was no clear in my ask. Then I'll explain better.

I need this information (version) to show in the web page (for exemple: Default.ASPX). Then, I can check that the correct version is being used.

Regards, Camarate
Hi,        
 Me.Text =  My.Application.Info.Version.ToString
Use the Request.ServerVariables("Server_Software")
Hi savic7uk, thanks for ypur reply.

But the command My.Application.Info.Version.ToString get the information that I put in the Assembly Information, not the real version of the install, that I put in the Setup project.

Regards, Camarate
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi CodeCruiser, Thank for your reply.

Yes. It's a web application.

About your last sugestion, to use Request.ServerVariables("Server_Software") , it shown the IIS version (Micrisoft-IIS/7.5) and not the web application version.

Regards, Camarate
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.