annotate Demo/Partial.Trust/ReadMe.txt @ 3:1ef98bd70424

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