System.Resources.MissingSatelliteAssemblyException Class

The exception that is thrown when the satellite assembly for the resources of the default culture is missing.

See Also: MissingSatelliteAssemblyException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class MissingSatelliteAssemblyException : SystemException

Remarks

The default culture is the culture whose resources are loaded if the appropriate culture-specific resources cannot be found. By default, resources for the default culture are located in the main assembly, and a System.Resources.MissingManifestResourceException is thrown if the resource manager tries to retrieve but cannot find a resource for the default culture. However, the .NET Framework will load the resources for an app's default culture from a satellite assembly if the System.Resources.NeutralResourcesLanguageAttribute attribute specifies a value of UltimateResourceFallbackLocation.Satellite for the location parameter. When this is the case, the System.Resources.MissingSatelliteAssemblyException exception is thrown when the resource manager tries to retrieve a resource of the default culture and the satellite assembly for the culture specified in the System.Resources.NeutralResourcesLanguageAttribute attribute is missing. Note that the exception is thrown by a resource retrieval method such as ResourceManager.GetString(string) or ResourceManager.GetObject(string), and not when the System.Resources.ResourceManager object is instantiated.

System.Resources.MissingSatelliteAssemblyException uses the HRESULT COR_E_MISSINGSATELLITEASSEMBLY, which has the value 0x80131536.

System.Resources.MissingSatelliteAssemblyException uses the default erload:System.Object.Equals implementation, which supports reference equality.

For a list of initial property values for an instance of the System.Resources.MissingSatelliteAssemblyException class, see the MissingSatelliteAssemblyException.#ctor constructors.

Note:

You should always use the System.Resources.NeutralResourcesLanguageAttribute attribute to define your app's default culture so that if a resource for a specific culture is unavailable, your application will display acceptable behavior.

Requirements

Namespace: System.Resources
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0