Groups | Blog | Home
all groups > dotnet distributed apps > january 2004 >

dotnet distributed apps : Customize the CLR


anonymus
1/23/2004 2:01:07 AM
Hello,

I've read that it's possible to customize the CLR in order to be able to change the politic for searching for an assembly. If you don't change anything the first thing it does is looking in the GAC, then uses the Codebase method , then application path and finally proving method.

I think it's possible to change this and make it search in a different order. Is it really possible? Where can I find information about it?

anonymous
1/23/2004 2:36:07 AM
Jan Tielens
1/23/2004 11:15:02 AM
That's possible! Check out these links:

How the Runtime Locates Assemblies
http://tinyurl.com/2h9n5
This part should be intresting for you:
Step 4: Locating the Assembly through Codebases or Probing
http://tinyurl.com/59gy

You also may want to read:
http://tinyurl.com/2gwy5
Specifying an Assembly's Location
There are two ways to specify an assembly's location:

a.. Using the <codeBase> element.
b.. Using the <probing> element.
You can also use the .NET Framework Configuration Tool (Mscorcfg.msc) to
specify assembly locations or specify locations for the common language
runtime to probe for assemblies.
--
Greetz


Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


[quoted text, click to view]
change the politic for searching for an assembly. If you don't change
anything the first thing it does is looking in the GAC, then uses the
Codebase method , then application path and finally proving method.
[quoted text, click to view]

Jan Tielens
1/23/2004 5:35:43 PM
I don't think that's possible: the GAC is always checked first.

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"anonymous" <anonymous@discussions.microsoft.com> schreef in bericht
news:B1268419-B9A8-4EC8-9CEB-F7878473EC55@microsoft.com...
[quoted text, click to view]
to use the GAC for some assemblies and proving method for others. But we
would like to start the finding with the proving method, insteat of GAC

anonymous
1/26/2004 1:46:12 AM
Jan Tielens
1/26/2004 12:37:29 PM
In the first repley of me, there are some links which explain in detail the
mechanism used to to locate assemblies.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


[quoted text, click to view]

AddThis Social Bookmark Button