2
votes

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
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.RenderAction - Muhammad Adeel Zahid

1 Answers

2
votes

Try adding this attribute to your class [SecuritySafeCritical]

Read more about it here or here