Error after installed MVC 5.1.2 line#new DHXScheduler(this)

In previous,My project is MVC 4,it’s ok but.
After I upgraded …

  1. Install-Package Asp.net MVC 5.1.2
  2. Install-Package Microsoft.AspNet.WebHelpers
  3. Install-Package Microsoft.AspNet.WebPages.Data

I got error in line of …
var scheduler = new DHXScheduler(this); (look into attached file)

And error details in below…
Attempt by security transparent method ‘DHTMLX.Scheduler.DHXScheduler…ctor(System.Web.Mvc.Controller)’ to access security critical type ‘System.Web.Mvc.Controller’ failed.

Assembly ‘DHTMLX, Version=3.0.5017.21272, Culture=neutral, PublicKeyToken=53f24791214eb8ac’ is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model. Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.

How can I fixed this problem?

Thanks for your advance.

Naphong.


Hi,
this is a known issue. Unfortunately we do not have a fix yet. Try following instructions
viewtopic.php?f=25&t=33317#p104422

Thanks for your help.
I Try in instructions
viewtopic.php?f=25&t=33317#p104422
but Not work with me,
I changed from
var scheduler = new DHXScheduler(this); to… var scheduler = new DHXScheduler();
I got some error in dhtmlscheduler.js (a._temp not defined)

How can I fix this? I have to fix quickly.

you are working on a resolution for this?
or is there a timeframe ?

Thanks,

Hi,

This must be related to the data loading. Please check the response from the Data action in browser console.
Probably it’s either 404, then you’ll need to specify the correct urls for DHXScheduler.DataAction and DHXScheduler.SaveAction. Or some kind of an error, and the message in server response should help

Thank you so much,
I just changed line below,it’s ok.

return Content(new SchedulerAjaxData(CalendarEventtmp), “text/json”);