Posted on 2004-11-23
Last Modified: 2010-04-15
You use Visual Studio .NET to create an application that uses an assembly. The assembly will reside on
the client computer when the application is installed. You must ensure that any future applications
installed on the same computer can access the assembly.

Which two actions should you take? (Each correct answer presents part of the solution. Choose two)

A. Use XCOPY to install the assembly in the global assembly cache.
B. Use XCOPY to install the assembly in the Windows\Assembly folder.
C. Create a strong name for the assembly.
D. Recompile the assembly by using the Native Image Generator (Ngen.exe).
E. Modify the application configuration file to include the assembly.
F. Use a deployment project to install the assembly in the global assembly cache.
G. Use a deployment project to install the assembly in the Windows\System32 folder.
Question by:f_asmaa
    LVL 6

    Expert Comment

    C and F

    Author Comment

    Why not C,E
    LVL 6

    Accepted Solution

    The global assembly cache stores assemblies specifically designated to be shared by several applications on
    the computer.

    C: An assembly must have a strong name to be installed in the global assembly cache.
    F: There are two ways to install an assembly into the global assembly cache.

    Using Microsoft Windows Installer. This could be achieved by a deployment project.
    Using the Global Assembly Cache tool (Gacutil.exe).

    Option E is not relevent here. If you include the assembly using Application config file , it wont get installed in GAC.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now