Solved

How can I get access to the assembly file code in my asp.net website?

Posted on 2012-03-20
3
316 Views
Last Modified: 2012-03-20
Hi,

I am working on a website that uses...

Private strVersion As String = _
     "VERSION " & System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.Major & _
     "." & System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.Minor & _
     "." & System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.Build & _
     "." & System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.Revision

to access the version info.

I need to do a release and cannot fathom how to update the version. I am aware that the version info is kept in the assembly but how do you access the assembly from visual studio?
0
Comment
Question by:jazz__man
  • 2
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 37741937
The version is usually stored in the AssemblyInfo.vb file, in the web project.
0
 
LVL 2

Author Comment

by:jazz__man
ID: 37742127
Thats what I thought but there is not one contained in the app I have performed a search of entire solution for it but nothing was found.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 37742154
If there isn't one, you can add one.  If there is one, and you add another, then you will get an error that there are duplicates.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Title # Comments Views Activity
Open a link in vb.net 2 15
jquery tab header text 1 23
Code works but breaks when I add one section 4 20
VB.NET Application Installation with sqlserver 8 29
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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 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