Solved

ASP.NET get assembly Version

Posted on 2010-11-18
12
639 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

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
 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

820 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