What should you do to modify the application so that the assemblies are automatically downloaded when the application requires them?

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. Domain.com consists of a Development department.
You as the developer of Domain.com use a client computer named Certkiller -WS222 as developing collateral.
You are busy developing a Microsoft Windows Forms application that uses the ClickOnce technology. You did specify several assemblies. The assemblies are used by the application as optional so that they do not get deployed initially.
The application is specified to loads these assemblies dynamically. What should you do to modify the application so that the assemblies are automatically downloaded when the application requires them?

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. Domain.com consists of a Development department.
You as the developer of Domain.com use a client computer named Certkiller -WS222 as developing collateral.
You are busy developing a Microsoft Windows Forms application that uses the ClickOnce technology. You did specify several assemblies. The assemblies are used by the application as optional so that they do not get deployed initially.
The application is specified to loads these assemblies dynamically. What should you do to modify the application so that the assemblies are automatically downloaded when the application requires them?

A.
You should handle the AssemblyResolve event of the AppDomain class and call the DownLoadFileGroup method of the ApplicationDeplpoyment class.

B.
You should handle the TypeResolve event of the AppDomain class and call the DownLoadFileGroup method of the ApplicationDeplpoyment class.

C.
You should handle the AssemblyLoad event of the AppDomain class and call the Update method of the ApplicationDeplpoyment class.

D.
You should handle the ResourceResolve event of the AppDomain class and call the Update method of the ApplicationDeplpoyment class.

Explanation:
The AssemblyResolve event is raised when the current application domain fails to load an assembly requested by the application. You need to specify the name of the deployment group to which the assembly belongs.

Incorrect Answers:
B: The TypeResolve is raised after an assembly is successfully loaded.
C: The AssemblyLoad is raised after an assembly is loaded.
D: The ResourceResolve event is raised when the current application domain fails to load a resource.



Leave a Reply 0

Your email address will not be published. Required fields are marked *