|
| (d) is the right answer. Because this custom control is
shared/used by several web applications, you need to
register this custom control dll in the global assembly
cache (with strong name).
If you try to install this custom control via Merge
Module, then ... you'll create multiple copies of this
custom control, not a good solution. Because when you try
to update this custom control in the future, you'll have
to update all these copies.
>-----Original Message-----
>
>I'm a little confused about this MeasureUp practice exam
question:
>
>"You are planning to deploy an ASP.NET Web application
to a production
>server in your company.
>"This application uses custom ASP.NET web server
controls that are part of
>the same solution but that reside in another assembly.
>"You anticipate that other ASP.NET web applications
developed in your
>company will also use these custom controls when they
are deployed to the
>production server.
>"How should you deploy your application?"
>
>a. Copy the assembly containing the custom controls to
the Web application's
>bin folder.
>
>b. Add the ASP.NET web application to the global
assembly cache.
>
>c. Add the assembly containing the custom controls to a
merge module. Add
>this merge module to a Web Setup project containing the
web application. Run
>the setup application on the production server.
>
>d. Deploy the ASP.NET web application by using any
deployment mechanism. Use
>the gacutil.exe utility to install the assembly
containing the custom
>controls into the global assembly cache on the
production server."
>
>The answer is (d). I thought merge modules were used to
deploy components
>that might be shared among apps, so they can be
uninstalled later. (And yet
>I know you put components into the GAC if they are used
by multiple apps.)
>The reason given by MeasureUp is that "Because the
assembly will only be
>used within your company, you only need to install it
into the GAC once. The
>assembly will not need to be installed by other
applications."
>
>I don't understand that. I would have chosen (c)- could
someone explain to
>me where I'm going wrong?
>
>Thanks
>Justin D
>
>
>.
>
|
|