Skip to main content

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.v24.1.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

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