98-372 · Question #92
You are creating an application using .NET Framework 4.0. The application uses an interop assembly that will be accessed by multiple .NET Framework applications on each computer. You need to make a…
The correct answer is D. Install the interop assembly in the global assembly cache (GAC). You should install the interop assembly in the global assembly cache (GAC). Assemblies shared by multiple applications need to be installed in a centralized storage area called the global assembly cache (GAC). The .NET clients can access the identical copy of the interop…
Question
You are creating an application using .NET Framework 4.0. The application uses an interop assembly that will be accessed by multiple .NET Framework applications on each computer. You need to make a single version of the interop assembly available to all applications. What is the best way to accomplish this?
Options
- APlace the interop assembly in the system directory.
- BPlace the interop assembly in a shared folder on the network.
- CInstall the interop assembly in the root of the C:\ drive.
- DInstall the interop assembly in the global assembly cache (GAC).
How the community answered
(62 responses)- A10% (6)
- B5% (3)
- C3% (2)
- D82% (51)
Explanation
You should install the interop assembly in the global assembly cache (GAC). Assemblies shared by multiple applications need to be installed in a centralized storage area called the global assembly cache (GAC). The .NET clients can access the identical copy of the interop assembly, which is signed and installed in the GAC. Global assembly cache (GAC) is a machine-wide cache. It stores assemblies that are designed to be shared amongst multiple applications on a computer. All assemblies stored in the global assembly cache must have strong names. While you can reference assemblies placed in a particular directory, installing the assembly in the GAC provides greater reliability as well as easy maintenance.
Topics
Community Discussion
No community discussion yet for this question.