• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 652
  • Last Modified:

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
0
Marcelo Camarate
Asked:
Marcelo Camarate
  • 4
  • 4
  • 2
  • +1
2 Solutions
 
CodeCruiserCommented:
Is it Windows 7? It would be 3.5 probably.
0
 
Marcelo CamarateAuthor Commented:
Hi CodeCruiser, Thanks for your reply.

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

Regards, Camarate
0
 
CodeCruiserCommented:
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.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Marcelo CamarateAuthor Commented:
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
0
 
savic7ukCommented:
Hi,        
 Me.Text =  My.Application.Info.Version.ToString
0
 
CodeCruiserCommented:
Use the Request.ServerVariables("Server_Software")
0
 
Marcelo CamarateAuthor Commented:
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
0
 
CodeCruiserCommented:
Its a web application right?
0
 
Marcelo CamarateAuthor Commented:
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
0
 
savic7ukCommented:
0
 
Kumaraswamy RCommented:
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.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now