To use BLToolkit in Partial Trust Environment you should perform the following steps:
- For all assemblies containing classes for which BLToolkit generates new types such as Partial.Trust.Components.dll in this demo:
-
Turn the TypeFactory.LoadTypes flag on.
Add the following section in the Web.config file:
<configSections>
<section name="bltoolkit" type="BLToolkit.Configuration.BLToolkitSection, BLToolkit.3" requirePermission="false"/>
</configSections>
<bltoolkit>
<typeFactory loadTypes="true" />
</bltoolkit>
- or
set
TypeFactory.LoadTypes = true;
somewhere before the first use of BLToolkit (Global.asax for Web applications).