473,563 Members | 2,895 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Determine currently loaded version of System.Xml.dll and Mscorlib.dll ?

MC
Is there an easy way for a .NET application to determine the version of
Mscorlib.dll and System.Xml.dll that is is actually using?

Given that System.Xml.dll has been revised several times (within .NET 2.0),
I'm wanting to find out if my program is running in an up-to-date
environment.

Thanks.

Jun 27 '08 #1
2 1753
On Apr 24, 9:17*am, "MC" <for.address.l. ..@www.ai.uga.e du.slash.mc>
wrote:
Is there an easy way for a .NET application to determine the version of
Mscorlib.dll and System.Xml.dll that is is actually using?

Given that System.Xml.dll has been revised several times (within .NET 2.0),
I'm wanting to find out if my program is running in an up-to-date
environment.

Thanks.
Use Assembly.GetAss embly to get a reference to the assembly
Jun 27 '08 #2
MC
"Ignacio Machin ( .NET/ C# MVP )" <ig************ @gmail.comwrote in
message
news:c6******** *************** ***********@w7g 2000hsa.googleg roups.com...
On Apr 24, 9:17 am, "MC" <for.address.l. ..@www.ai.uga.e du.slash.mc>
wrote:
>Given that System.Xml.dll has been revised several times (within .NET
2.0),
I'm wanting to find out if my program is running in an up-to-date
environment.
Use Assembly.GetAss embly to get a reference to the assembly
Thanks, Ignacio. Worked like a charm. In detail, here's how I did it, in
case anyone else wonders:

Assembly a = Assembly.GetAss embly(typeof(Co nsole));
Console.WriteLi ne("Mscorlib.dl l information:");
Console.WriteLi ne(a.ImageRunti meVersion);
Console.WriteLi ne(a.CodeBase);

/* Assembly */ a = Assembly.GetAss embly(typeof(Xm lSerializer));
Console.WriteLi ne("System.Xml. dll information:");
Console.WriteLi ne(a.ImageRunti meVersion);
Console.WriteLi ne(a.CodeBase);

Jun 27 '08 #3

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

Similar topics

1
585
by: aerobar2 | last post by:
When I debug my application I get "no symbols loaded" ================= 'DefaultDomain': Loaded 'c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded. 'MHSFire': Loaded 'C:\Documents and Settings\bamason\My Documents\Visual Studio Projects\MHSFire\bin\MHSFire.exe', Symbols loaded. 'MHSFire.exe': Loaded...
3
11636
by: Zoury | last post by:
Good day! :O) I have the following code : //*** using System; using System.Windows.Forms; <snip>
11
3417
by: Z D | last post by:
Hello, If I have a .NET assembly, how do I determine what version of the .NET framework it.... 1) was compiled against 2) is supposed to use 3) is compatible with? Is there a utility that will extract this info somehow?
2
1687
by: Leon Gorbaty [Bentley] | last post by:
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...
2
4720
by: Scott | last post by:
Does anyone know of a way to get the .NET Framework version that's required by a specified assembly. I have a program I've written that creates a Windows Installer setup for any application. However, for many of the programs I work with there are a lot of files that have come from other developers, and I'd like to be able to determine...
0
2827
by: Michael R. Pierotti | last post by:
Has anyone seen this error before when trying to make the install on a program. ------ Starting pre-build validation for project 'HafaSMPPInstall' ------ WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'Devshock.Protocol.SmppClient.DLL' WARNING: Unable to find dependency...
5
3586
by: Lambuz | last post by:
First of all, is it possible usign .NET remoting feature inside a .NET applet loaded into a tag object inside an HTML page ? <OBJECT id="myID" height="150" width="300" classid="http:applet.dll#test.applet"</OBJECT> If not please can anyone explain why ? I think yes and so I'd written a small example immediately I've met a problem.
0
1040
by: corey.hutchinson | last post by:
I'm trying to compare, what I believe are differences, between my application in debug mode and executing the exe from the bin\. Is there a way to "get", "display" the basic information displayed in Consul when debugging of the different assemblies being loaded? ex. I start up my app in debug and in the consul I see the following lines...
3
12036
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (machine.config) --->...
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.