System.Resources.MissingManifestResourceException Class

The exception that is thrown if the main assembly does not contain the resources for the neutral culture, and an appropriate satellite assembly is missing.

See Also: MissingManifestResourceException Members

Syntax

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

Remarks

Desktop Apps

In desktop apps, System.Resources.MissingManifestResourceException is thrown when the attempt to retrieve a resource fails because the resource set for the neutral culture could not be loaded from a particular assembly. Although the exception is thrown when you try to retrieve a particular resource, it is caused by the failure to load the resource set rather than the failure to find the resource.

Note:

For additional information, see the "Handling a MissingManifestResourceException Exception" section in the System.Resources.ResourceManager class topic.

The main causes of the exception include the following:

System.Resources.MissingManifestResourceException uses the HRESULT COR_E_MISSINGMANIFESTRESOURCE, which has the value 0x80131532.

System.Resources.MissingManifestResourceException uses the default object.Equals(object) implementation, which supports reference equality.

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

Note:

We recommend that you include a neutral set of resources in your main assembly, so your app won't fail if a satellite assembly is unavailable.

win8_appname_long Apps

Unlike desktop apps, which deploy localized resources in satellite assemblies and typically store the resources of the neutral culture in the main assembly, win8_appname_long apps deploy resources for multiple cultures, including the neutral culture, in a single package resource index (.pri) file. As a result, in a win8_appname_long app, if resources for the preferred culture cannot be found, the System.Resources.MissingManifestResourceException is thrown under either of the following conditions:

Requirements

Namespace: System.Resources
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0