Attempt by security transparent method Kigg.Web.jQueryScriptManager.OnInit
Asked Answered
S

1

2

I am trying to configure Kigg project on my machine and i am getting this error.

Attempt by security transparent method 'Kigg.Web.jQueryScriptManager.OnInit(System.EventArgs)' to access LinkDemand protected method 'Kigg.Web.jQueryScriptManager.get_Current()' failed. Methods must be security critical or security safe-critical to satisfy a LinkDemand.

Can someone please help me to resolve this error.

StackTrace

at Kigg.Web.jQueryScriptManager.OnInit(EventArgs e) in D:\EDrive\My WebSites\MyUpdates\MyUpdates\Source\Web\Controls\jQueryScriptManager.cs:line 111 at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Scriptorium answered 1/7, 2011 at 16:50 Comment(1)
this problems appears if we convert the project to run against .NET 4. with 3.5 it runs fine except i m finding crashes on each Html.RenderActionAdai
W
2

Try adding this attribute to your class [SecuritySafeCritical]

Read more about it here or here

Wabble answered 18/10, 2011 at 21:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.