AppDomainSetup.ApplicationBase Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the name of the directory containing the application.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

abstract ApplicationBase : string with get, set
override ApplicationBase : string with get, set

Property Value

Type: System.String

The name of the application base directory.

The application base directory is where the assembly manager begins probing for assemblies.

The ApplicationBase property can influence which permissions are granted to an application domain. For example, an application domain originating from the local computer normally receives full trust based on its location of origin. However, if the ApplicationBase property of that AppDomain is set to the full name of an intranet directory, the ApplicationBase setting restricts the permissions granted to the application domain to a LocalIntranet grant even though the application domain actually originates from the local computer.

The following example demonstrates how to use the ApplicationBase property to set the location where the assembly loader begins probing for assemblies to load into a new application domain.


You must ensure that the folder you specify exists.

No code example is currently available or this language may not be supported.


for access to the path information. Associated enumeration: FileIOPermissionAccess.PathDiscovery

.NET Framework
Available since 1.1
Available since 2.0
Return to top