CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 2/11/2004 3:23:08 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 64 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
raghucode101
Asp.Net User
How to get version number of calling assembly?2/11/2004 3:23:08 PM

0/0

We have a portal with 10 asp.net application, each application is a separate project.
The header and footer for all the asp.net application are the same so we decided to create asp.net server controls under a MyServercontrols assembly (MyServercontrols.dll)

My question is on the footer so let us get to it? Footer is a very simple server control all it has to do is display the copyrights and the version number of the application it is running in.

Say AppTest is a website (AppTest.dll, version 2.1) .The footer server control is used in this project which is in MyServercontrols.dll . I want the footer sever control to find the version number of the AppTest assembly.

I don?t want to pass the assembly name of the AppTest application to the footer to get the version number, rather I would like the Footer sever control to dynamically figure out the assembly that is using it and get the version number.

I tried a couple of things in the footer sever control


HttpContext.Current.Application.GetType.Assembly.GetCallingAssembly
-Returns System.web
HttpContext.Current.Application.GetType.Assembly.GetEntryAssembly
-Returns nothing
HttpContext.Current.Application.GetType.Assembly.GetExecutingAssembly
-Returns ?MyServercontrols? assembly in which the footer belongs to.

Appreciate your help.

Raghu Vangala

http://www.code101.com
master4eva
Asp.Net User
Re: How to get version number of calling assembly?2/12/2004 1:08:03 PM

0/0

I do not know if this will work but this may be the solution:

Assembly.GetCallingAssembly

Do not call the httpcontext. BTW - import System.Reflection.
-- Justin Lovell
raghucode101
Asp.Net User
Re: How to get version number of calling assembly?2/12/2004 3:54:17 PM

0/0


Assembly.GetCallingAssembly --- this return System.web



Raghu Vangala

http://www.code101.com
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro .NET 1.1 Remoting, Reflection, and Threading: From Professional to Expert Authors: Syed Fahad Gilani, Tobin Titus, Mike Gillespie, Fabio Claudio Ferracchiati, David Curran, James Hart, Benny K. Mathew, Sandra Gopikrishna, Andy Olsen, Tejaswi Redkar, Robin Pars, Jon Pinnock, Srinivasa Sivakumar, Pages: 647, Published: 2005
Professional C# 2005 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones, Pages: 1540, Published: 2006
McSd Analyzing Requirements and Defining .Net Solution Architectures Study Guide: (exam 70-300) Authors: Scott Duffy, David Waddleton, Pages: 672, Published: 2003
Professional C# 2008 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Pages: 1782, Published: 2008
Microsoft Visual C# .NET 2003 Kick Start: Kick Start Authors: Steven Holzner, Dan Fernandez, Pages: 624, Published: 2003
Fundamentals of Web Applications Using .NET and XML Authors: Eric Bell, Pages: 564, Published: 2002
Professional Assembly Language Authors: Richard Blum, Pages: 546, Published: 2005
MCAD/MCSD Training Guide (70-310): Developing XML Web Services and Server Components with Visual Basic. Net and the . Net Framework Authors: Mike Gunderloy, Ed Tittel, Pages: 1024, Published: 2003
Beginning VB 2008: From Novice to Professional Authors: Christian Gross, Pages: 450, Published: 2008
C# in a Nutshell: a desktop quick reference Authors: Peter Drayton, Ben Albahari, Ted Neward, Pages: 897, Published: 2003

Web:
Aligning Build Numbers with Assembly Versions in TFS2008. - Martin ... Feb 5, 2008 ... Create a custom build number, matching the assembly version .... to read/write and then we are calling the MSBuild Community Task FileUpdate ...
Assembly Versioning The assembly's version number, which, together with the assembly name and culture information, is part of the assembly's identity. This number is used by ...
how to find out the version of an assembly? I need to extract the version number of an assembly in my .NET Windows app. ... string representation by calling ToString. ...
How to find assembly path ,name and version at runtime - Helper Code Aug 18, 2008 ... Finding the running application path is as simple as calling ... Get the path, version and name of a certain assembly (dll or exe). ...
Suzanne Cook's .NET CLR Notes : Assembly Display Names If you need to get one programmatically, try Assembly.FullName, AssemblyName. .... GetType() will only look in the calling assembly and then mscorlib.dll ...
Introduction to UNIX Assembly Programming LG #53 FreeBSD has "usual" calling convention, when syscall number is in eax, and parameters are on the ... If you get interested in assembly programming for UNIX , ...
.NET CLR Components—Assembly Names at C# Online.NET (CSharp-Online ... All assembly names have a four-part version number ( Version ) of the form Major .Minor. .... This configuration allows the following call to Assembly.Load : ...
Daemon News '200006' : '"Introduction to UNIX assembly programming "' Linux differs from the usual UNIX calling convention, and features a "fastcall" convention for .... If you get interested in assembly programming for UNIX, ...
Infosys | Microsoft: Loading Multiple Versions of same Assembly Apr 23, 2007 ... Hence you would need to be able to call new methods on new version and the buggy method on the old version. With this preamble, lets get ...
Yogee's Blog: How to Get Calling Assembly This way you get the calling assembly so you can compile that assembly. There are a lot of goodies to explore in ... Google and Yahoo version of Sitemap ...

Videos:
Fraps!!!! Get It Free Here (+ Link ) Full Version!@!!! --------CLICK MORE INFO-------- Hey all here is another video that I made. This one is going to be about how to get fraps free and full version. Her...
The Holy Bible - King James Version - Judges - Chapter 21 Judges 21 1.Now the men of Israel had sworn in Mizpeh, saying, There shall not any of us give his daughter unto Benjamin to wife. 2And the people ca...
BIZFUNDING WORKSHOP http://bizfunding.info The BIZFUNDING ! Workshop 2008 package, $199.99 Refund Policy No Refunds 0-914391-72-0 is a 7 Audio CD - DVD Set and a C...
President Bill Clinton Calls Philip Emeagwali a "Great Mind" THE WHITE HOUSE Office of the Press Secretary (Abuja, Nigeria) ___________________________________...
Pinoy Memories 36 Pinoy Memories - Philippine President Marcos explains his "New Society" plan for the ordinary Filipino since declaring Martial Law through-out the na...
Dauger Research profiled on Keeping America Strong - Part 2 Dauger Research is the proud recipient of the "Keeping America Strong" award, part of a special television broadcast hosted by William Shatner. This ...
Full Focus: Raising Minimum Wage; The Politics of Pete Wilson February 8,2006 We all feel the pressure of the high cost of living in San Diego, but how is this cost crunch affecting our workers? Governor Schwarzenegger is propo...
Full Focus: The Politics of Pete Wilson Series (encore) March 23, 2006 Jerry Sanders is San Diego's new strong mayor, but is he the first? On Thursday's Full Focus, meet the man some call the city's first real strong may...
KCRW Podcasting and Mobilcasting Google Tech Talks September 13, 2006 Jason Georges http://www.kcrw.com ABSTRACT Jason Georges from the local public radio station will be in the Sa...
Kirby Air Ride another video




Search This Site:










dnn 4.0 installation errors

compressing .js and .css files (iis 6.0)

anonymous users

upgrading from dnn2 to dnn4

daab execute reader & output parameters

how i can implement multiple login pages for admin and users?

dnn 3.0.13?

dynamic navigation menu

creating apps in vs2005

any winxp sp2 problems?

smtp problems on server with mcafee virusscan 8.0

helper classes

is there a way to populate datareader with multiple sql statements

user pipelining/queuing

how to get grid layout instead of flow layout

problem with uploading file

class problem

gridview is not appearing on page ???

admin » site log

using xml as membership provider?

heeeeelllllp!

user.identity - user.isinrole() not working

accessing a custom field from the user registration wizard

version help?

vwd: errors with range validator

ot: wysiwyg editor.... for free? know of any?

apostrophe in rowfilter for dataview

does visual web developer support crystal report

is visual web developer the right tool

sort of off-topic, but a question about relationship between graphics class and image class...

 
All Times Are GMT