473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Is there a way to tell what exe is using which version of a .dll in the gac?

BR
Is there a way to tell what exe is using which version of a .dll in the
gac?

Oct 14 '05 #1
6 1476
BR
I guess i should add, there are 5 versions of a .dll and i am not sure
what code is pointing at which version

Oct 14 '05 #2
You might be able to open the assembly using an object browser such as
Reflector (http://www.aisto.com/roeder/dotnet/) and locate the assembly
references within it to see what it is pointing to.

"BR@dontmail" <ac******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I guess i should add, there are 5 versions of a .dll and i am not sure
what code is pointing at which version

Oct 14 '05 #3
BR
Oh. ok , i was assuming there was a microsoft way to do this. Like
looking it up by the public token or by doing gacutil /resolve :) i
looked at the reflector just briefly , but am not sure this will
resolve it backwards to the exe that points to it.

Oct 14 '05 #4
I can think of two way to check which assemblies are loaded:

Either via visual stduio .net using the 'module' window when debugging the
application. The module window can be found at the menu Debug -> Windows ->
Modules

or

In code using reflection , something like this:

sing System;
using System.Reflection;

namespace ConsoleApplication1
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
Assembly entryAssembly = Assembly.GetEntryAssembly();
AssemblyName[] assemblyNames = entryAssembly.GetReferencedAssemblies();
for(int i = 0; i < assemblyNames.Length; i++)
{
Console.WriteLine(assemblyNames[i].FullName);
}

Console.ReadLine();
}
}
}
HTH

Ollie Riches

IOn code using reflec
"BR@dontmail" <ac******@gmail.com> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
Oh. ok , i was assuming there was a microsoft way to do this. Like
looking it up by the public token or by doing gacutil /resolve :) i
looked at the reflector just briefly , but am not sure this will
resolve it backwards to the exe that points to it.

Oct 15 '05 #5
Okay, do you want to know what something references, or do you want to know
what something is referenced by? Also, do you want to know at runtime
through code or just run some tool at the command line?

There is no "backwards" in assemblies. For instance, if you have Foo.exe
which references Bar.dll, well, you can open Foo.exe with reflector and it
will tell you that Bar.dll is referenced. However, Bar.dll could also be
referenced by MyCoolProgram.exe. Do, as you can see, there can be no
relationship back from the assembly.

"BR@dontmail" <ac******@gmail.com> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
Oh. ok , i was assuming there was a microsoft way to do this. Like
looking it up by the public token or by doing gacutil /resolve :) i
looked at the reflector just briefly , but am not sure this will
resolve it backwards to the exe that points to it.

Oct 17 '05 #6
BR
Yes, i was looking for a relationship back from the assembly dll
Thanks anyway

Oct 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ted Byers | last post by:
I have gotten to the point where attempting to run my application using "java -jar HotSpotImageTest.jar" no longer generates a complaint about not finding function main. It turned out that the...
2
by: j.b.messina | last post by:
This has not yet been published by Microsoft. It will be published within the next few weeks, mainly because I asked them to. I felt this was information badly needed, and I think this is the...
2
by: marco | last post by:
the problem: I use a typedef inside a class template, than I use this type (dim_v<N1>::Type) to define the argument of a template function f but when I call this function from main, the compiler...
3
by: joe k. | last post by:
Can anyone help me. I'm trying to display this test.xml file using this fomat.xsl file using VB. I get an error "Missing mandatory attribute 'version'. Description: An unhandled exception...
4
by: ±èµ¿±Õ | last post by:
Tell me why the symbol "_" use in the Library? For example, char *_itoa( int value, char *string, int radix ); But We use function "itoa(value,string,radix) "only. I want to know the...
18
by: jrhoads23 | last post by:
Hello, I am trying to find a way to tell if an .NET windows forms Button (System.Windows.Forms.Button) is "depressed" (pushed down). For my application, I can not use a check box control set to...
12
by: joanne | last post by:
how to tell application version after i installed it at client side? i did make the version and product code while doing the packaging and deployment. Thanks a lot.
7
by: UJ | last post by:
Is there a way to tell when something was compiled? (I'm trying to find a way to keep track of what 'version' the web site is and can't find anything that only changes when it's recompiled.) TIA...
3
by: Magdoll | last post by:
I was trying to map various locations in a file to a dictionary. At first I read through the file using a for-loop, but tell() gave back weird results, so I switched to while, then it worked. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.