We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to allow overidding to dll of syncfusion in shard hosting server

Thread ID:





116289 May 10,2014 12:15 PM UTC May 14,2014 04:11 AM UTC ASP.NET Web Forms (Classic) 3
Tags: DiagramWebControl
Muneeb Ahmed
Asked On May 10, 2014 12:15 PM UTC

Hello Sir,
    I am stuck in an issue. I have a diagram web control and to use this diagram web control i have added Following 5 dlls. 

<add assembly=Syncfusion.Shared.Web, Version=11.4400.0.26, Culture=neutral, PublicKeyToken=3D67ED1F87D44">
<add assembly="Syncfusion.Core, Version=11.4400.0.26, Culture=neutral, PublicKeyToken=632609B4D040F6B4" />
<add assembly="Syncfusion.Shared.Base, Version=11.4400.0.26, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89" />
<add assembly="Syncfusion.Diagram.Base, Version=11.4400.0.26, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
<add assembly="Syncfusion.Chart.Web, Version=11.4400.0.26, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89" />
<add assembly="Syncfusion.Chart.Base, Version=11.4400.0.26, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89" />
<add assembly="Syncfusion.Tools.Web, Version=11.4400.0.26, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89" />
<add assembly="Syncfusion.Diagram.Web, Version=11.4400.0.26, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89" />

All these runs very well on my localHost but as i put it on hosting server it gives me the following error

Inheritance security rules violated while overriding member: 'Syncfusion.Windows.Forms.Diagram.Model.System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

Source Error: 

Line 29:                                 
Line 30:                              
Line 31:                                     <syncfusion:diagramwebcontrol id="DiagramWebControl1" runat="server" 

Can you tell me what is the problem. I have shared window hosting

Amsath Ali M [Syncfusion]
Replied On May 12, 2014 11:33 AM UTC

Hi Muneeb,


Thanks for your update.


It seems the reported issue to be the security related issue and it is due to the medium trust level of ASP.NET web-application requires the application’s code to be security transparent. The problem is that GetObjectData() method required to implement ISearializable interface which is marked with a SecurityCritical attribute, and it "breaks" the transparency for the whole assembly. We suggest you to add the below attributes to the Assembly.info file of your project.


Here is the code:

[assembly: SecurityRules(SecurityRuleSet.Level1)]

[assembly: AllowPartiallyTrustedCallers]


Please let us know if you have any queries.



Amsath Ali. M

Muneeb Ahmed
Replied On May 12, 2014 03:10 PM UTC

I have added your suggested line in Assembly Info.cs But still giving me the same error. I am using ftp to deploy on web server

Amsath Ali M [Syncfusion]
Replied On May 14, 2014 04:11 AM UTC

Hi Muneeb,


Thanks for your update.


Currently, the issue reported by you has been suspected to be a defect. Please create a DT incident for your query so that we can update the patch for this issue.

You can create the DT incident from the following link.

In the interests of maintaining confidentiality, we have a policy of not sharing patches or otherwise proprietary customer specific information in the public Forum.


Please let us know if you have any queries.



Amsath Ali. M


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon