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

How does IJW determine version of CLR to load?

Hi,

We have some managed assemblies that are compiled with the /clr switch for
some native code to load. These are currently compiled and linked against a
pure .NET 1.0 environment.

I have both VS.NET 1.0 and 1.1 installed on my box. I noticed (in debugger)
that 1.1 system dll's are being loaded (specifically the 1.1. CLR). I would
have expected the IJW mechanism to inspect the managed assemblies it has to
load, and run the appropriate CLR.

How does this work and what options do we have in controlling the CLR
loading. For example, knowing what I have now observed, I cannot trust
"machine.config" files on user-deployed computer, because I don't know which
CLR version is being read.

Regards,

Leon
Nov 17 '05 #1
2 1677
"Leon Gorbaty [Bentley]" <le**********@bentley.com.RemoveRenameThis> wrote
in message news:up**************@TK2MSFTNGP10.phx.gbl...
I have both VS.NET 1.0 and 1.1 installed on my box. I noticed (in debugger) that 1.1 system dll's are being loaded (specifically the 1.1. CLR). I would have expected the IJW mechanism to inspect the managed assemblies it has to load, and run the appropriate CLR.

How does this work
I suspect someone will explain it to you shortly ... <g>
and what options do we have in controlling the CLR
loading. For example, knowing what I have now observed, I cannot trust
"machine.config" files on user-deployed computer, because I don't know which CLR version is being read.


If you decide that you want complete control of the load of common language
runtime you may want to check the docs for this function
CorBindToRuntimeEx() which allows you to load the version and type (server
or not) that you like. I _think_ that this is frowned on, but when you
gotta, you gotta. :-)

Regards,
Will


Nov 17 '05 #2
The version of the CLR used to run your appliaction is determined by the
version of mscoree.dll, this version corresponds to the version of the
newest .NET version, so if you have .NET 1.0 and 1.1 installed, mscoree.dll
is of version 1.1.
Applications built using the .NET Framework version 1.0 will automatically
use version 1.1 when installed , else it will use v1.0.
You can change this default behavior by using an application config file ,
but I don't see any reason to do this as the application will run properly
on version 1.1.

http://msdn.microsoft.com/library/de...orkversion.asp

has more information.

Willy.

"Leon Gorbaty [Bentley]" <le**********@bentley.com.RemoveRenameThis> wrote
in message news:up**************@TK2MSFTNGP10.phx.gbl...
Hi,

We have some managed assemblies that are compiled with the /clr switch for
some native code to load. These are currently compiled and linked against
a
pure .NET 1.0 environment.

I have both VS.NET 1.0 and 1.1 installed on my box. I noticed (in
debugger)
that 1.1 system dll's are being loaded (specifically the 1.1. CLR). I
would
have expected the IJW mechanism to inspect the managed assemblies it has
to
load, and run the appropriate CLR.

How does this work and what options do we have in controlling the CLR
loading. For example, knowing what I have now observed, I cannot trust
"machine.config" files on user-deployed computer, because I don't know
which
CLR version is being read.

Regards,

Leon

Nov 17 '05 #3

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

Similar topics

1
by: Joe Kehnast | last post by:
I have a couple of xml dll's installed on my machine. I used a Microsoft utility to determine which version is used by Internet Explorer. I would like to know how to configure IE to use a...
31
by: bilbothebagginsbab5 AT freenet DOT de | last post by:
Hello, hello. So. I've read what I could find on google(groups) for this, also the faq of comp.lang.c. But still I do not understand why there is not standard method to "(...) query the...
5
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1....
3
by: nsh | last post by:
mailing.database.mysql, comp.lang.php subject: does "LOAD DATA" EVER work?!? I've tried EVERYTHING! version info: my isp is running my web page on a linux box with php ver. 4.4.1 according to...
3
by: Anthony LaMark | last post by:
Hi All, Whether in a Winform application (.exe) or a .Net assembly (.dll), is there a way to determine what version of the .net baseframework the run-time module (i.e. exe or dll) was loaded...
0
by: =?Utf-8?B?SmFtZXM=?= | last post by:
I'm stuck with the following error... Does anyone know how to correct the reference? I've not idea why it is referencing 'Copy of...' Server Error in '/Client1' Application....
12
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
I am writing a web app to be widely distributed where I do not know the installed .NET Framework version. I want to take advantage of some .NET 3.0 classes if they are installed, but gracefully...
7
by: Cramer | last post by:
I'm wondering if there is an easy way to programmatically determine if an assembly is installed in the GAC. This would be similar to our ability to easily determine if a file exists...
1
by: sva0008 | last post by:
i have a auto suggest script that does not work in firefox , works great on IE. /******************************************************* AutoSuggest - a javascript automatic text input...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.