PrepAway - Latest Free Exam Questions & Answers

What element should you add?

You have recently created a business application that references another strong-named assembly named
library.dll, and deployed it to all Domain.com users.
Subsequent to testing the applications performance, you elect to upgrade the assembly’s version to 1.1.0.0.
You need to ensure that the new version of will not affect any of Domain.com’s current users
by adding the appropriate element to the assemblyBinding element in the application configuration file.
What element should you add?

PrepAway - Latest Free Exam Questions & Answers

A.
<dependentAssembly>
<assemblyIdentity name=”Library” publicKeyToken=”32ab4bc45e90a1″ culture=”neutral” />
<redirect oldVersion=”1.0.0.0″ newVersion=”1.1.0.0″ />
</dependentAssembly>

B.
<dependentAssembly>
<assemblyIdentity name=”Library” publicKeyToken=”32ab4bc45e90a1″ culture=”neutral” />
<bindingRedirect oldVersion=”1.0.0.0″ newVersion=”1.1.0.0″ />
</dependentAssembly>

C.
<dependentAssembly>
<assemblyIdentity name=”Library” publicKeyToken=”32ab4bc45e90a1″ culture=”neutral” oldVersion=”1.0.0.0″ newVersion=”1.1.0.0″ />
</dependentAssembly>

D.
<dependentAssembly>
<bindingRedirect oldVersion=”1.0.0.0″ newVersion=”1.1.0.0″ />
</dependentAssembly>

Explanation:

This dependentAssembly element specifies the assembly identity information using the assemblyIdentity element.
The name attribute of the assemblyIdentity element indicates the common name of the assembly.
The publicKeyToken attribute specifies the strong-named key, and the culture attribute indicates the localization type.
The bindingRedirect element is a subelement of the dependentAssembly element that specifies the oldVersion and newVersion attributes.
Setting the oldVersion attribute to 1.0.0.0 and the newVersion attribute to 1.1.0.0 means that any users referencing the 1.0.0.0 version of the Library will now be referencing the 1.1.0.0 version.

Incorrect Answers:
A: You should not use the element that specifies the redirect element because there is no such subelement of the assemblyBinding element.
C: You should not use the element that specifies the assemblyIdentity element because this is required information when adding dependentAssembly elements.
D: You should not use the element that specifies the bindingRedirect element because there are no such attributes as oldVersion and newVersion attributes for the assemblyIdentity element.

One Comment on “What element should you add?


Leave a Reply