473,748 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1495
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@dontmai l" <ac******@gmail .com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.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.Reflecti on;

namespace ConsoleApplicat ion1
{
/// <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.GetEnt ryAssembly();
AssemblyName[] assemblyNames = entryAssembly.G etReferencedAss emblies();
for(int i = 0; i < assemblyNames.L ength; i++)
{
Console.WriteLi ne(assemblyName s[i].FullName);
}

Console.ReadLin e();
}
}
}
HTH

Ollie Riches

IOn code using reflec
"BR@dontmai l" <ac******@gmail .com> wrote in message
news:11******** ************@o1 3g2000cwo.googl egroups.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.e xe. Do, as you can see, there can be no
relationship back from the assembly.

"BR@dontmai l" <ac******@gmail .com> wrote in message
news:11******** ************@o1 3g2000cwo.googl egroups.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
2556
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 problem was that there was a package statement as the first line of the code generated by Borland's JBuilder IDE. Yes, I used JBuidler's form designer to create it. I don't normally worry about adding "package" to code I write, and didn't much care...
2
630
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 best group to share this information. A co-worker and I were able to determine how to tell exactly what version of .NET Framework is installed. We had to do this because we had to manually deploy the MS05-004 Security Bulletin to thousands of...
2
1647
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 (gcc 3.4.1) tell me: "no matching function found". If someone, more expert than me, could tell me what is wrong I would be very happy
3
2238
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 occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Xml.Xsl.XsltException: Missing mandatory attribute 'version'. "
4
2446
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 specific reason .
18
3069
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 button style, I must use a System.Windows.Forms.Button. I can not find a way to tell when it is momentaraly pressed. I tried calling the API SendMessage with the button handle and BM_GETSTATE to get the state of the button. This will only return...
12
4127
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
1241
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 - Jeff.
3
2906
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. The for-loop version was something like: d = {} for line in f: if line.startswith('>'): d = f.tell() And the while version was:
0
9561
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9381
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9332
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8252
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.