Home » Microsoft » 70-488 » What should you do?
After deploying a solution, a code-based hotfix becomes available.
You need to deploy the hotfix.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Use assembly binding redirection in the web application configuration file.
B. Increment the assembly file version of the assembly.
C. Increment the product version of the assembly.
D. Increment the assembly version of the assembly.
E. Use assembly binding redirection in the assembly policy file.
Correct Answer: AC
Explanation/Reference:
A:Assembly versions are everywhere in SharePoint - web.config files, web part definitions, workflow definitions, event receiver bindings - the list goes on. In each case, the version number is absolutely required so that SharePoint can load the code to run at that time. If you update an assembly’s version, you have two choices to ensure your code can still be loaded:
/ Find and update every reference to the previous assembly version.
/ Use a binding redirect in the relevant .config file (e.g. web.config) to point to the new version of the assembly.
C: Assembly Version : This is the version number used by framework during build and at runtime to locate, link and load the assemblies. When you add reference to any assembly in your project, it is this version number which gets embedded. At runtime, CLR looks for assembly with this version number to load. But remember this version is used along with name, public key token and culture information only if the assemblies are strong-named signed. If assemblies are not strong-named signed, only file names are used for loading.
Incorrect:
not B: Assembly File Version : This is the version number given to file as in file system. It is displayed by Windows Explorer. It’s never used by .NET framework or runtime for referencing.
From scenario:
* solution artifacts must adhere to industry best practices.
* Code based hot fixes must be deployed directly to the Global Assembly Cache on all SharePoint servers.
* Only one version of an assembly must be available at runtime.