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

Referenced assemblies

Hi all,
I have two questions about assemblies.
Q1. Why the GetReferencedAssemblies() Method of an Assembly class returns
sometimes "mscorlib" and "System" as referenced assemblies knowing that a
System is a namespace (not an assembly) within mscorlib assembly.
Q2. For test purposes i copy the "mscorlib.dll" assembly on my desktop and
then my program cannot load it. Meanwhile i load it from its origin location
without any problem. what's wrong ?
Thanks in advance.

Nov 15 '05 #1
1 1436
A1. System is *ALSO* a separate, physical assembly (System.dll) with some
overlap with mscorlib.dll in terms of namespaces
A2. I'll wager that it's because it's in the GAC. Try gacutil /l mscorlib
to see if it is (it should be) and try removing it to see if your local copy
works, then.

---------------------------
http://blogs.geekdojo.net/Richard
--
Veuillez m'excuser, mon Français est très pauvre. Cependant, si vous voyez
mauvais C #, c'est mon défaut!
"Abdessamad Belangour" <be*******@irin.univ-nantes.fr> wrote in message
news:Oz*************@TK2MSFTNGP10.phx.gbl...
Hi all,
I have two questions about assemblies.
Q1. Why the GetReferencedAssemblies() Method of an Assembly class returns
sometimes "mscorlib" and "System" as referenced assemblies knowing that a
System is a namespace (not an assembly) within mscorlib assembly.
Q2. For test purposes i copy the "mscorlib.dll" assembly on my desktop and
then my program cannot load it. Meanwhile i load it from its origin location without any problem. what's wrong ?
Thanks in advance.

Nov 15 '05 #2

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

Similar topics

2
by: Bob | last post by:
I have an application that builds to the same directory that contains outside references and it seems to be very buggy. Random outside assemblies (referenced by projects in the solution) get...
4
by: Jimi | last post by:
Given a C# project file path, can I use reflection to get all the assemblies referenced by the project? e.g., I know the path of a C# project, say, "c:\SomeProject.csproj", and I want to load...
1
by: Jimi | last post by:
(Sorry for the repost, but I thought maybe I'd have better luck this time) I'm working on a utility to provide an overview of one's .NET projects and one of the things I want to display is...
2
by: BH | last post by:
My question may be a bit odd. Right now I can see that all referenced assemblies in my project are compiled into the application assembly so when I deploy the application, I don't see those...
1
by: Bob | last post by:
For an assembly I manually load from a file, this code snippet: For Each t As Type In asm.GetTypes 'do something Next generates this error message: ...
3
by: Steve Long | last post by:
Hello, can anybody tell me what the trick is to getting VB.NET 2003 to step into the code of an assembly that I have referenced in my project? For instance, I have these two assemblies, both...
1
by: Omatase | last post by:
Here is my code: CDO.Message iMessage = new CDO.MessageClass(); string sFrom; string sDate; iMessage.DataSource.Open(bstrURLItem,null, ADODB.ConnectModeEnum.adModeRead,...
0
by: lbolognini | last post by:
Hi all, How do i get a list of all cross-referenced assemblies starting from a foo.dll? i'd like to have a unique list of all the assemblies dependant on foo.dll and of all the assemblies that...
0
by: mahendra dubey | last post by:
Hi There I want to get all referenced assembly of a Project.While googling I found two way of doing this... 1)Assembly.GetEntryAssembly().GetReferencedAssembly() but problem with that...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
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,...
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
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...

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.