Upgrade and soap
I have recently upgraded Diagram and I am having issues with loading a diagram saved in soap format from the previous version. I am getting a "Parse error, no assembly associated with Xml key". This is due to the new Diagram assembly not matching the version that was saved. What is the safest way to upgrade my saved diagrams to a newer version?
SIGN IN To post a reply.
3 Replies
MF
Meera Fathima
Syncfusion Team
May 26, 2006 02:47 PM UTC
Hi,
Please open your diagram file with visual Studio IDE and remove the version dependencies for the Syncfusion assemblies if any. And after that try opening this file in the diagram application. Please let me know if you still run into this problem. We will be glad to assist you.
Thank you for using Syncfusion products.
Best Regards,
Meera.
TL
Truman Lackey
May 30, 2006 04:07 PM UTC
Well what I have done is created a wrapper class to save multiple diagrams. I used savesoap to save a diagram to a stream and then in the wrapper class the stream is serialized as an array of bytes. Now when I updated to the recent version of syncfusion I received xml key errors when I deserialized the stream. So I created a binder like this
NotInheritable Class VersioningBinder
Inherits SerializationBinder
Public Overrides Function BindToType(ByVal assemblyName As String, ByVal typeName As String) As Type
Dim typeInfo As String() = typeName.Split(".")
Dim className As String = typeInfo(typeInfo.Length - 1)
Dim t As System.Type
Select Case className
Case "SymbolModel"
Return GetType(SymbolModel)
Case "NodeCollection"
Return GetType(NodeCollection)
Case "LayerCollection"
Return GetType(LayerCollection)
Case "Layer"
Return GetType(Layer)
Case "LabelCollection"
Return GetType(LabelCollection)
Case "FillStyle+FillType"
Return GetType(FillStyleType)
Case "BitmapNode"
Return GetType(BitmapNode)
Case "Polygon"
Return GetType(Polygon)
Case "Line"
Return GetType(Line)
Case "HandleEditMode"
Return GetType(HandleEditMode)
Case Else
Return Type.GetType(String.Format("{0},{1}", typeName, assemblyName))
End Select
End Function
This allowed me to deserialize the wrapper class. Now I am running into an exception on LoadSoap which is
"Parse Error, no type with Xml key a 1 Syncfusion.Windows.Forms.Diagram.Controls.Diagram+DiagramDoc Syncfusion.Diagram"
My diagram in soap is attached.
I am upgraded from I think vers 2 something of syncfusion diagram.
soapdiagram.zip
soapdiagram.zip
AD
Administrator
Syncfusion Team
July 4, 2006 06:59 AM UTC
Hi,
I am sorry about this delay in getting back to you. And as for this issue, I was able to view the condition and have logged QA report on this. The report id is # 2209. You can see the report details using web based tracking system - http://www.syncfusion.com/support/issues/diagram/Default.aspx
Thanks,
Meera.
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
TL Truman Lackey
- May 25, 2006 06:32 AM UTC
- Jul 4, 2006 06:59 AM UTC