Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2007

Tip: Looking for answers? Try searching our database.

load .NET assembly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RedLars - 09 Oct 2007 21:06 GMT
How does an executable (managed or unmanaged) load an .NET assembly ?

A dotnet 1.0 application I'm debugging atm seems to (one computer)
load dotnet 2.0 assemblies instead of the specified 1.0 version (all
assembly reference in the vs2002 solution for the application point to
dotnet 1.0). Due to changes in the api between these two dotnet
version the application will not run properly when using an incorrect
version. The computer contains dotnet 1.0 \ 1.1 \ 2.0 \3.0.

Any hints on an utility or article that could shed some light on this
situation ?

Ta,
Chris Mullins [MVP - C#] - 09 Oct 2007 21:35 GMT
> How does an executable (managed or unmanaged) load an .NET assembly ?

The .Net Subsystem responsible for this is called Fusion. You can run the
Fusion Log Viewer (fuslogvw.exe) to take a look at what's being loaded, and
why.

There are a number of articles that should popup if you search using the
terms above. A gooding starting point is:
http://blogs.msdn.com/junfeng/archive/2004/02/14/72912.aspx

--
Chris Mullins
RedLars - 10 Oct 2007 06:56 GMT
On 9 Okt, 22:35, "Chris Mullins [MVP - C#]" <cmull...@yahoo.com>
wrote:
> > How does an executable (managed or unmanaged) load an .NET assembly ?
>
[quoted text clipped - 7 lines]
> --
> Chris Mullins

Thanks for the reply.

Fuslogvw.exe looks like an interesting utility.

Since this problem occured I've been a bit curious about the procedure
for an executables for loading .NET assemblies. I mean, there seems to
many possible combinations of events (mananged \ unmanage main
application, strong name, gac, different policy files etc). Does
microsoft have any kind of documentation for this ?
Chris Mullins [MVP - C#] - 10 Oct 2007 17:53 GMT
There's tons of documentation on this, some formal, and a signifigant amount
through the MSDN Bloggers. Just hit google with the relevant keywords and
you'll get more information than you can shake a stick at.

The best overall resource I see is:
http://blogs.msdn.com/suzcook/archive/tags/Loader+Info/default.aspx

Some of her specific blogs are just excellent:
http://blogs.msdn.com/suzcook/archive/2003/05/29/57143.aspx
http://blogs.msdn.com/suzcook/archive/2003/06/13/57180.aspx

Signature

Chris Mullins

> On 9 Okt, 22:35, "Chris Mullins [MVP - C#]" <cmull...@yahoo.com>
> wrote:
[quoted text clipped - 21 lines]
> application, strong name, gac, different policy files etc). Does
> microsoft have any kind of documentation for this ?
RedLars - 11 Oct 2007 08:49 GMT
On 10 Okt, 18:53, "Chris Mullins [MVP - C#]" <cmull...@yahoo.com>
wrote:
> There's tons of documentation on this, some formal, and a signifigant amount
> through the MSDN Bloggers. Just hit google with the relevant keywords and
[quoted text clipped - 34 lines]
>
> - Vis sitert tekst -

Thanks for the reply.

Just a quick question. On a WinXP computer with .NET 1.1 and 2.0
installed. When running a c# application compiled with .NET 1.0,
since .NET 1.0 isnt installed on the computer it loads .NET 2.0
assemblies. Why does it pick 2.0? Is the newest version always default
in situations like this?

Btw, this was a good read; http://www.ondotnet.com/pub/a/dotnet/2003/03/17/bindingpolicy.html
Rory Becker - 11 Oct 2007 09:36 GMT
> Just a quick question. On a WinXP computer with .NET 1.1 and 2.0
> installed. When running a c# application compiled with .NET 1.0,
> since .NET 1.0 isnt installed on the computer it loads .NET 2.0
> assemblies. Why does it pick 2.0? Is the newest version always default
> in situations like this?

It is my understanding that the latest version of the .Net framework will
be used if version used to compile the app is not present.

--
Rory

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.