Chapter 15

 < Day Day Up > 

A1:

  1. False. Only a strongly named assembly may be placed in the GAC but it does not have to be there.

  2. False. The compiler does not automatically check the GAC for references.

  3. True. The CLR checks the GAC for assembly references.

  4. True. A client must have a valid public key token to use an assembly in the GAC.

A2:

A Permission attribute should be added to the assembly, specifying the permission(s) required by the assembly.

A3:

A strong name consists of a simple name, version number, culture info, and public key token.

A4:

Assign version: [assembly: AssemblyVersion("1.1.0.1")]

 Assign culture:  [assembly: AssemblyCulture("fr-CA")] 

The default build number is the number of days since 1/1/2000; the default revision number is the number of seconds past midnight divided by 2.

A5:

The IStackWalk interface defines the Assert, Deny, and PermitOnly methods to modify a stack walk. Assert stops the walk; Deny specifies permissions that cause the walk to fail; and PermitOnly specifies the only permissions that do not cause the stack walk to fail..

A6:

Delayed signing refers to using a public key to create a digital signature, as opposed to using the private key. When the final assembly is ready, the private key replaces the public key for encryption. This reduces the need to expose the private key during development.

A7:

A predefined permission is an individual permission class provided by .NET. A named permission set is a predefined set of permission objects. A security zone classifies where an assembly originates: Internet, Intranet, MyComputer, NoZone, trusted, Untrusted.

A8:

  1. True.

  2. True.

  3. False. <Binding Redirect /> is used to redirect CLR to newer version.

  4. False.

A9:

Add to the configuration:

 <binding Redirect OldVersion="1.0.0.0"               NewVersion="2.0.0.0" /> 

     < Day Day Up > 


    Core C# and  .NET
    Core C# and .NET
    ISBN: 131472275
    EAN: N/A
    Year: 2005
    Pages: 219

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net