Skip to main content
A newer version of this page is available. .

CustomAssemblyLoadingProhibitedException Class

An exception thrown on an attempt to load a custom assembly by an Entity Framework data source when it was not permitted to do this.

Namespace: DevExpress.DataAccess.EntityFramework

Assembly: DevExpress.DataAccess.v19.2.dll

Declaration

public class CustomAssemblyLoadingProhibitedException :
    Exception

Remarks

To allow an Entity Framework data source to load a specific custom assembly, handle the EFDataSource.BeforeLoadCustomAssembly or EFDataSource.BeforeLoadCustomAssemblyGlobal event and set the BeforeLoadCustomAssemblyEventArgs.AllowLoading property to true.

The CustomAssemblyLoadingProhibitedException provides the CustomAssemblyLoadingProhibitedException.AssemblyPath and CustomAssemblyLoadingProhibitedException.ContextName properties that return values assigned to the corresponding properties of the BeforeLoadCustomAssemblyEventArgs class.

Inheritance

Object
Exception
CustomAssemblyLoadingProhibitedException
See Also