Reputation: 6684
is there a way in .NET to clearly see what are the DLLs that a process (in this case an IIS process) has loaded to run an application?
It is a general question out of curiosity (I can't recall any way to inspect a .NET process and find out what DLLs it is using) and also because I have both Oracle DLLs (x86 and x64) running and I would like to make sure which is one is being used my app for debugging purposes.
Thanks a lot!
Upvotes: 3
Views: 2189
Reputation: 13496
I tried this and it worked perfectly:
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
According to MSDN:
Summary: Gets the assemblies that have been loaded into the execution context of this application domain.
if you run this code in your ASP.NET application the output will contain:
Upvotes: 6