Solved

ASP.NET get assembly Version

Posted on 2010-11-18
12
634 Views
Last Modified: 2012-05-10
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
Comment
Question by:Marcelo Camarate
  • 4
  • 4
  • 2
  • +1
12 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34164089
Is it Windows 7? It would be 3.5 probably.
0
 

Author Comment

by:Marcelo Camarate
ID: 34164167
Hi CodeCruiser, Thanks for your reply.

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

Regards, Camarate
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34164265
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
 

Author Comment

by:Marcelo Camarate
ID: 34164386
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
 
LVL 3

Expert Comment

by:savic7uk
ID: 34164419
Hi,        
 Me.Text =  My.Application.Info.Version.ToString
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34164449
Use the Request.ServerVariables("Server_Software")
0
 

Author Comment

by:Marcelo Camarate
ID: 34164456
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
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 63 total points
ID: 34164472
Its a web application right?
0
 

Author Comment

by:Marcelo Camarate
ID: 34164581
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
 
LVL 3

Assisted Solution

by:savic7uk
savic7uk earned 62 total points
ID: 34170941
0
 
LVL 29

Expert Comment

by:Kumaraswamy R
ID: 34387734
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now