Skip to content

Commit 814186e

Browse files
authored
update example
1 parent 683adf0 commit 814186e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CS/MVCDashboardDesigner/Global.asax.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Web.Routing;
66
using DevExpress.DashboardCommon;
77
using DevExpress.DashboardWeb;
8+
using DevExpress.Utils;
89
using MVCDashboardDesigner.App_Start;
910

1011
namespace MVCDashboardDesigner {
@@ -13,6 +14,7 @@ namespace MVCDashboardDesigner {
1314

1415
public class MvcApplication : System.Web.HttpApplication {
1516
protected void Application_Start() {
17+
DeserializationSettings.RegisterTrustedClass(typeof(SalesPersonData));
1618
DashboardConfig.RegisterService(RouteTable.Routes);
1719
AreaRegistration.RegisterAllAreas();
1820
WebApiConfig.Register(GlobalConfiguration.Configuration);
@@ -29,4 +31,4 @@ protected void Application_Error(object sender, EventArgs e) {
2931
//TODO: Handle Exception
3032
}
3133
}
32-
}
34+
}

0 commit comments

Comments
 (0)