473,378 Members | 1,426 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,378 software developers and data experts.

Getting a list of loaded assemblies

Lee
Hi,

I have an app that loads in assemblies at run-time using the
Assembly.LoadFrom command. When I look at the list of assemblies using
GetReferencedAssemblies, my loaded ones do not appear in the list. However,
when I throw an exception, they appear in the stack trace as being loaded.

I assume that GetReferencedAssemblies is only picking up things that are
referenced at design-time but is there any way I can see which assemblies
are loaded from the Assembly.LoadFrom command?

TIA

Lee
Mar 5 '07 #1
2 3766
"Lee" <le*@somewhere.comschrieb:
I have an app that loads in assemblies at run-time using the
Assembly.LoadFrom command. When I look at the list of assemblies using
GetReferencedAssemblies, my loaded ones do not appear in the list.
However, when I throw an exception, they appear in the stack trace as
being loaded.

I assume that GetReferencedAssemblies is only picking up things that are
referenced at design-time but is there any way I can see which assemblies
are loaded from the Assembly.LoadFrom command?
Check out 'AppDomain.GetAssemblies'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Mar 5 '07 #2
Lee
Exactly what I was looking for...thank you sir!

Lee

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:ef*************@TK2MSFTNGP06.phx.gbl...
"Lee" <le*@somewhere.comschrieb:
>I have an app that loads in assemblies at run-time using the
Assembly.LoadFrom command. When I look at the list of assemblies using
GetReferencedAssemblies, my loaded ones do not appear in the list.
However, when I throw an exception, they appear in the stack trace as
being loaded.

I assume that GetReferencedAssemblies is only picking up things that are
referenced at design-time but is there any way I can see which assemblies
are loaded from the Assembly.LoadFrom command?

Check out 'AppDomain.GetAssemblies'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Mar 6 '07 #3

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

Similar topics

3
by: toki | last post by:
public class Form1 : System.Windows.Forms.Form { MyClass myclass; public Form1() { myclass = new MyClass(); } }
11
by: Vinod I | last post by:
Hi Team, I am having a string as "System.Data.SqlDbType.Int". Now I want to convert this string type to actual type to use with my Command object Parameter Creation. How I will convert this...
3
by: billb | last post by:
I need to figure out how to get a list of everything in the GAC and a path to it. I have code that will go through and get a list of the assemblies through Fusion, however, when I do an...
8
by: Charles Law | last post by:
I'm sorry to keep harping on about this one, but it is really quite important for me to be able to list _all_ required assemblies in my Help About box. Herfried kindly posted some code before that...
1
by: Brian Henry | last post by:
I need to mark assemblies with a unique id (GUID in this case) and retrieve it when the assembly is loaded into my application (a plug-in loader)... the plug-in assembly all have a class in it...
4
by: _AnonCoward | last post by:
It occurred to me recently that I would like to programmatically get a list of all the classes available to me for a given framework (i.e.: 1.0, 1.1, 2.0). Any ideas on how to approach that...
2
by: Fabio Z | last post by:
Hi all! I'd like to get the list of loaded modules by my assembly, like VS does at debug time in the loaded modules window. I load some assembly via Assembly.LoadFile() and I'd like to retrieve...
2
by: Smithers | last post by:
I have a Windows Forms application that implements a plug-in architecture whereby required assemblies are identified and loaded dynamically. Here are the relevant classes: A = application =...
2
by: Smithers | last post by:
My ASP.NET Web app uses a few 3rd party assemblies. Just wondering when those are loaded into the Web app's AppDomain - and for how long do they stay loaded. Is an assembly loaded the first time...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.