You are required to add the application’s base directory as part of your search and need to configure an application domain to meet the requirements.

You work as the application developer at Domain.com.
Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 application that will be used for
geographical mapping. Whenever you load a plug-in you create a separate application domain.
You want to specify a list of directories that are searched for private assemblies.
You are required to add the application’s base directory as part of your search and need to configure an application domain to meet the requirements.

You work as the application developer at Domain.com.
Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 application that will be used for
geographical mapping. Whenever you load a plug-in you create a separate application domain.
You want to specify a list of directories that are searched for private assemblies.
You are required to add the application’s base directory as part of your search and need to configure an application domain to meet the requirements.

A.
The AppDomainSetup.PrivateBinPathProbe property should be used.

B.
The AppDomain.BaseDirectory property should be used.

C.
The AppDomain.DynamicDirectory property should be used.

D.
The AppDomainSetup.PrivateBinPath property should be used.

Explanation:
The method used in the answer is used to specify a list of directories under the application’s base directory that are probed for private assemblies. This property must be set to specify the locations that should be searched.
Incorrect Answers:
A: This property is set to a non-empty value and excludes the ApplicationBase from the searches and should not be used.
B: This method only specifies the base directory for the application domain and does not specify all the different locations to be searched for private assemblies.
C: This property is used to get the directory that the assembly resolver uses to probe for dynamically created assemblies and is a read-only assembly.



Leave a Reply 1

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


seenagape

seenagape

I have the same idea.