PDA

View Full Version : .net 4.0 beta2 + coolite



sipo
Nov 12, 2009, 12:07 PM
1)build source code by vs2010 target framework = 4.9

2)Change The ViewStateMode= Coolite......

3)use the Assembly then error

Inheritance security rules violated by type: 'Coolite.Ext.Web.WebControlDesigner'. Derived types must either match the security accessibility of the base type or be less accessible.

maxoptimus
Sep 03, 2012, 12:21 PM
1)build source code by vs2010 target framework = 4.9

2)Change The ViewStateMode= Coolite......

3)use the Assembly then error

Inheritance security rules violated by type: 'Coolite.Ext.Web.WebControlDesigner'. Derived types must either match the security accessibility of the base type or be less accessible.

- add latest version of Newtonsoft.Json.dll; (and fix some errors related to jSON reader, etc; add null in the end if method expected more arguments, etc)
- under Coolite.Ext.Web AssemblyInfo.cs add '[assembly: System.Security.SecurityRules(System.Security.Secu rityRuleSet.Level1)] '
- under '\Coolite.Ext.Web\Core\ResourceManager.cs' replace line:
cache.SetLastModified(new DateTime(ResourceManager.GetAssemblyTime(typeof(Re sourceManager).Assembly)));
to
cache.SetLastModified(new DateTime(2012, 08, 31)); //etc
and now all will work fine under 4.0 framework...