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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Upgrade and soap

Thread ID:

Created:

Updated:

Platform:

Replies:

44494 May 25,2006 06:32 AM UTC Jul 4,2006 06:59 AM UTC Windows Forms 3
loading
Tags: Diagram
Truman Lackey
Asked On May 25, 2006 06:32 AM UTC

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?

Meera Fathima [Syncfusion]
Replied On 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.

Truman Lackey
Replied On 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

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

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.

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

;