Sign In
Suzanne Cook's .NET CLR Notes
Common Language Runtime Developer
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Loader Debugging Advice
Loader Info
Archive
Archives
February 2005
(1)
January 2005
(1)
October 2004
(1)
August 2004
(1)
June 2004
(1)
May 2004
(1)
March 2004
(1)
February 2004
(1)
December 2003
(1)
November 2003
(1)
September 2003
(2)
August 2003
(2)
July 2003
(3)
June 2003
(7)
May 2003
(6)
June, 2003
MSDN Blogs
>
Suzanne Cook's .NET CLR Notes
>
June, 2003
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Suzanne Cook's .NET CLR Notes
Mscorlib.dll
Posted
over 9 years ago
by
Suzanne Cook
28
Comments
At least for v2 and earlier, mscorlib.dll is a special case. That causes it and its types to be loaded differently from other assemblies. Loading Mscorlib.dll Without a Path It and the execution engine are so closely integrated that it's required that...
Suzanne Cook's .NET CLR Notes
Assembly.CodeBase vs. Assembly.Location
Posted
over 9 years ago
by
Suzanne Cook
7
Comments
The CodeBase is a URL to the place where the file was found, while the Location is the path from where it was actually loaded. For example, if the assembly was downloaded from the internet, its CodeBase may start with "http://", but its Location may start...
Suzanne Cook's .NET CLR Notes
Determining an Image’s CLR Version
Posted
over 9 years ago
by
Suzanne Cook
11
Comments
To get it programmatically, from managed code, use Assembly.ImageRuntimeVersion. From unmanaged, use mscoree.dll's GetFileVersion(). (From the command line, starting in v2.0, ildasm.exe will show it if you double-click on "MANIFEST" and look for "Metadata...
Suzanne Cook's .NET CLR Notes
AppDomain.Load()
Posted
over 9 years ago
by
Suzanne Cook
8
Comments
AppDomain.Load() is only meant to be called on AppDomain.CurrentDomain. (It's meant for interop callers only. They need a non-static method, and Assembly.Load() is static.) If you call it on a different AppDomain, if the assembly successfully loads in...
Suzanne Cook's .NET CLR Notes
Switching to the Load Context
Posted
over 9 years ago
by
Suzanne Cook
14
Comments
So, after checking out the binding context options , you've decided to switch your app to use the Load context. Now, you just need to figure out how to do it. Maybe it will be as simple as using Assembly.Load( assemblyDisplayName ) instead of Load...
Suzanne Cook's .NET CLR Notes
Executing Code in Another AppDomain
Posted
over 9 years ago
by
Suzanne Cook
46
Comments
The easiest way to run code in another appdomain is to execute an assembly entrypoint using AppDomain.ExecuteAssembly() or (starting in v2.0) AppDomain.ExecuteAssemblyByName(). If you want to execute a method other than an assembly entrypoint, call...
Suzanne Cook's .NET CLR Notes
App.Config Files
Posted
over 9 years ago
by
Suzanne Cook
37
Comments
By default, the application configuration file of the default appdomain (and other appdomains for v1.1 and later) is in the process exe’s directory and named the same as the process exe + ".config". This is true even if that exe is unmanaged. Also, note...
Page 1 of 1 (7 items)