This.outerRect = this.GetChildByName("Rectangle") as .Rectangle Protected override void OnDeserialization(object sender) Called when deserialization is complete. Protected override void GetObjectData(SerializationInfo info, StreamingContext context) Serialization constructor for symbols. Please add the following codes in your custom symbol to resolve your problem You have to add Serialization constructor and Serialization state information to your custom symbol. InsCmd_Poly.Do(Me.DiagramWebControl1.Model) InsCmd_Poly.AddNode(poly1, New PointF(50, 30)) You should make sure that an application has debugging disabled before deploying into production scenario."ĭim insCmd_Poly As InsertNodesCmd = New InsertNodesCmd() Important: Running applications in debug mode does incur a memory/performance overhead. The first technique will cause only that particular file to be compiled in debug mode. Note that this second technique will cause all files within a given application to be compiled in debug mode. Example:Ģ) Add the following section to the configuration file of your application: Add a "Debug=true" directive at the top of the file that generated the error. To enable this, please follow one of the below steps, then request the URL:ġ. The source code that generated this unhandled exception can only be shown when compiled in debug mode. Please review the stack trace for more information about the error and where it originated in the code.Įxception Details: : Type 'MySymbol' in Assembly 'App_Web_kwx1gkv4, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable. Type 'MySymbol' in Assembly 'App_Web_kwx1gkv4, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.ĭescription: An unhandled exception occurred during the execution of the current web request. " Server Error in '/solution' Application. Ms-help://MS.VSCC.v80/Syncfusion/SfDiagramBase/Symbols1.htmlīut when I try to use it, an unknown exception is handle : I have been trying to create my own Symbol, using your example :
0 Comments
Leave a Reply. |