Attempt by security transparent method Kigg.Web.jQueryScriptManager.OnInit

2.6k Views Asked by At

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)

1

There are 1 best solutions below

0
On BEST ANSWER

Try adding this attribute to your class [SecuritySafeCritical]

Read more about it here or here