corelibraries-devexpress-dot-dataaccess-dot-entityframework-68de60d1.md
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.v25.2.dll
NuGet Package : DevExpress.DataAccess
public class CustomAssemblyLoadingProhibitedException :
Exception
Public Class CustomAssemblyLoadingProhibitedException
Inherits Exception
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.
Object Exception CustomAssemblyLoadingProhibitedException
See Also
CustomAssemblyLoadingProhibitedException Members