Re: Referencing assemblies and .config files.

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mark Broadbent (no-spam-please_at_no-spam-please.com)
Date: 06/29/04


Date: Tue, 29 Jun 2004 15:51:23 +0100

That was partly my point that you will notice that you can declaratively
access part of the System.Runtime.Remoting namespace *without* adding a
reference to the remoting.dll. However some classes of the namespace was
missing which I could only make available by referencing this dll. This
really is the basis for my question because (like your assumption) you would
have thought that everything that belongs to remoting would be accessible
through the remoting.dll; wheras you will find that alot is accessible
without referencing this. Hence I believe that this namespace spans several
dlls ... and the bit that is being exposed to me I think can be found in the
mscorlib.dll.
Please have a try with intellisense (or view mscorlib via object browser)
and you will see what I mean.
I can only assume that things have been designed like this to reduce file
library sizes, and to only expose essential classes in namespaces for design
reasons.

P.S. I am pretty sure that remoting is not the only namespace that spans
dlls like this.

I hope I made more sense.

-- 
Br,
Mark Broadbent
mcdba , mcse+i
=============
"John Wood" <j@ro.com> wrote in message
news:%23Zadt$dXEHA.1000@TK2MSFTNGP12.phx.gbl...
> I think you'll find the remoting namespaces are held in a separate DLL
> called System.Runtime.Remoting.dll.
>
> -- 
> John Wood
> EMail: first name, dot, last name, at priorganize.com
> "Mark Broadbent" <no-spam-please@no-spam-please.com> wrote in message
> news:%23oBaS7dXEHA.3292@TK2MSFTNGP09.phx.gbl...
> > 1. makes sense, thought that might be reason. Question is where am I
> picking
> > up the initial remoting classes from? -At a guess I'd say there is a
> > System.Runtime.Remoting namespace defined in mscorlib.dll (which I think
> Im
> > right in saying is referenced automatically). Certainly if I look at it
> thru
> > object browser it certainly seems that way.
> >
> > 2. Thx for this link. I was kind of hoping the documentation for all
> > namespaces/ classes config in Xml docs would be in one place but I guess
> > I'll have to see what I can find on a class by class basis. Still thx
for
> > this starting point.
> >
> > -- 
> >
> >
> > Br,
> > Mark Broadbent
> > mcdba , mcse+i
> > =============
> > "John Wood" <j@ro.com> wrote in message
> > news:uSly0pdXEHA.2716@tk2msftngp13.phx.gbl...
> > > 1. I think the trade-off of having some namespaces in separate
> assemblies
> > is
> > > really down to the size of the assembly and the likelihood that it
will
> be
> > > referenced. Loading an assembly takes time, so they want to reduce the
> > size
> > > of the default assemblies as much as possible. Namespaces like
Remoting
> > and
> > > Windows.Forms are great candidates for splitting off into separate
> > > assemblies because they are large namespaces and used only in specific
> > > circumstances.
> > >
> > > 2. The remoting configuration file format is all documented in MSDN.
> > >
> >
>
http://msdn.microsoft.com/library/en-us/dndotnet/html/remotingconfig.asp?frame=true
> > >
> > > -- 
> > > John Wood
> > > EMail: first name, dot, last name, at priorganize.com
> > > "Mark Broadbent" <no-spam-please@no-spam-please.com> wrote in message
> > > news:OvHJUTdXEHA.1152@TK2MSFTNGP09.phx.gbl...
> > > > Hi guys, just going through remoting at the moment and a couple of
> > > questions
> > > > relating to .net in general has surfaced.
> > > > Firstly I have seen in the designer that for the namespace and many
of
> > its
> > > > associated classes of System.Runtime.Remoting are available, but
> certain
> > > > ones are not. A reference to System.Runtime.Remoting needs to be
added
> > to
> > > > make available all the unavailable ones. Now although I (think)
> > understand
> > > > the concept that an assembly needs to be referenced in order for its
> > > classes
> > > > and other members to be exposed to the designer, I cant quite get my
> > head
> > > > around why some classes of certain namespaces are available and
others
> > > > arent -until a reference is made to this assembly. Is this simply a
> > design
> > > > issue that certain parts of a namespace have been exposed in certain
> > > > assemblies. Could someone explain how this works and why it has been
> > done?
> > > >
> > > > The second part of my question relates to XML elements and
attributes
> of
> > > > config files. Having looked at an example of storing certain
> predefined
> > > > elements for remoting config it has occurred to me that there must
be
> > some
> > > > kind of reference for this XML based language to configure things at
> > > > runtime. For instance I might have known how to register a client
> > > activated
> > > > channel in c# code, but how would I have known that...
> > > > {snippet!!}
> > > > <channels>
> > > >     <channel ref="http" port="1234" />
> > > > </channels>
> > > > ..would have done the same thing. Therefore there must be somewhere
> that
> > I
> > > > can look these things up?
> > > >
> > > > thanks in advance!
> > > > -- 
> > > >
> > > >
> > > > Br,
> > > > Mark Broadbent
> > > > mcdba , mcse+i
> > > > =============
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Relevant Pages

  • Referencing assemblies and .config files.
    ... just going through remoting at the moment and a couple of questions ... Firstly I have seen in the designer that for the namespace and many of its ... A reference to System.Runtime.Remoting needs to be added to ... assemblies. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Namespaces - broad question
    ... what if I wrote an aspx page that inherited a class ... > The class is already in a namespace - the Inherits attribute is just ... > referencing. ... It isn't creating a new namespace or a new class. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Namespace issue
    ... The name of the namespace and the name of the class are the same ... When you're referencing Parser in your declaration, ... I've two class libraries, where one is referencing the other. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Reference in C#
    ... That was because you were referencing a module. ... If i have referanced Namespaces "MyLibrary" and i want to use ... In VB i would have just gone to the project properties and added ... typing the full namespace. ...
    (microsoft.public.dotnet.framework)
  • Re: Reference in C#
    ... Actually I meant the referencing of the individual classes in the ... If i have referanced Namespaces "MyLibrary" and i want to use ... In VB i would have just gone to the project properties and added ... typing the full namespace. ...
    (microsoft.public.dotnet.framework)