comparison Demo/Partial.Trust/ReadMe.txt @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 To use BLToolkit in Partial Trust Environment you should perform the following steps:
2
3 For all assemblies containing classes for which BLToolkit generates
4 new types such as Partial.Trust.Components.dll in this demo:
5
6 - Sign the assembly.
7
8 - Add the AllowPartiallyTrustedCallers attribute:
9
10 [assembly: AllowPartiallyTrustedCallers]
11
12 - Use BLTgen.exe to generate BLToolkit extensions at the post-build step.
13 For example:
14
15 $(ProjectDir)..\..\..\Tools\BLTgen\bin\$(ConfigurationName)\BLTgen.exe $(TargetPath) /O:$(ProjectDir)..\Asp.Net\bin /K:$(ProjectDir)Partial.Trust.snk /D
16
17 Extension assembly must be signed as well (use /K flag).
18
19 Turn the TypeFactory.LoadTypes flag on.
20
21 Add the following section in the Web.config file:
22
23 <configSections>
24 <section name="bltoolkit" type="BLToolkit.Configuration.BLToolkitSection, BLToolkit.3" requirePermission="false"/>
25 </configSections>
26 <bltoolkit>
27 <typeFactory loadTypes="true" />
28 </bltoolkit>
29
30 - or
31
32 set
33
34 TypeFactory.LoadTypes = true;
35
36 somewhere before the first use of BLToolkit (Global.asax for Web applications).