PrepAway - Latest Free Exam Questions & Answers

What should you do?

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. The development and deployment of client applications forms part of your responsibilities at Domain.com. You implemented a strong-named managed assembly that makes use of Enterprise Services. The assembly is not registered for use within a COM+ context. And no RunInstaller attributes have been applied to any of the classes in the assembly. You have been instructed to register the assembly with COM+ to accommodate the COM clients.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Install the assembly into the COM+ catalog by running the Regsvcs.exe utility.
Then install the assembly into the global assembly cache (GAC) by running the Gacutil.exe utility.

B.
Install the assembly into the global assembly cache (GAC) by running the GacUtil.exe utility.
Then install the assembly into the COM+ catalog by running the Regsvcs.exe utility.

C.
Install the assembly into the COM+ catalog by running the Regsvcs.exe utility.
Then install the assembly’s configuration in the registry by running the InstallUtil.exe utility.

D.
Install the assembly into the global assembly cache (GAC) by running the GacUtil.exe utility.
Then install the assembly’s configuration in the registry by running the InstallUtil.exe utility.

Explanation:
Managed assemblies that are hosted by COM+ applications must be installed in the GAC before COM+ clients can use them. Then you should run the Regvcs.exe utility as this utility will allow you to install a managed assembly into the COM+ catalog.
Incorrect answers:
A: The Regvcs.exe utility should not be run prior to running the Gacutil.exe utility because you cannot register assemblies with COM+ for use by COM clients if they do not already exist in the GAC.
C: The Regvcs.exe utility should not be run before the InstallUtil.exe utility. You first need to install the assembly into the GAC before running GacUtil.exe.
D: The InstallUtil.exe utility should not be run after you have run the GacUtiul.exe utility. The InstallUtil.exe utility executes custom installers that are defined in an assembly. And custom installers are classes that derive from Installer and that have the RunInstaller attribute applied already.


Leave a Reply