Hi Ranjan,
Thanks for your update.
We are not able to run the application as a dependency file is missing. Kindly provide the respective files in order to reproduce the reported issue and to provide a better solution.
Please let us know if you have any queries.
Regards,
Swarnesh K
Hi Ranjan,
Thanks for your update.
We have analyzed the sample with the provided dll’s in the last update and still we are getting the same error as reported. Please provide us a runnable sample to reproduce the reported issue, this will help us to analyze further and provide better solution?
Please refer below attached video and let us know if you have any queries.
Regards,
Swarnesh K
Hi Ranjan,
Thanks for your update.
We have analysed the project
after removing the“Symcon.LightRidge.LRRUI.dll”
mentioned previously in your update and still we face the same issue in our
end. Please refer the below attachment for your reference.
Please let us know if any concern.
Regards,
Ashok Kumar.
Hi Ranjan,
Thanks for your update.
We have analysed the
attached sample and we could not able to find the main project “LLRMain” show
in the screenshot provided by you. However we analysed the problem from the
provided screenshot and we suggest you to use SymbolPalette’s “FromFile”
method to resolve the reported issue. Since the method have the inbuilt
implementation of converting the “.Edp” file to the object stream without conflict.
However the API is available from
the Syncfusion version (8.1) or later. We are modified your sample also please refer
the below code snippet for your reference.
Here is the Code snippet:
[C#]
public sealed
class OldToNewDeserializationBinder
: SerializationBinder
{
public override Type
BindToType(string assemblyName, string typeName)
{
Type
typeToDeserialize;
// For
each assemblyName/typeName that you want to deserialize to
// a
different type, set typeToDeserialize to the desired type.
string
assem = Assembly.GetExecutingAssembly().FullName;
if
(assemblyName.IndexOf("Syncfusion.Diagram")
!= -1 && assemblyName.IndexOf("Version",
0) != -1)
{
//
find "Version" substring
int
nIdxStart = assemblyName.IndexOf("Version",
0);
int
nIdxEnd = assemblyName.IndexOf(",",
nIdxStart);
int
nIdxRplStart = assem.IndexOf("Version",
0);
int
nIdxRplEnd = assem.IndexOf(",",
nIdxRplStart);
//
replace whole "Version" substring
assemblyName =
assemblyName.Replace(
assemblyName.Substring(nIdxStart,
nIdxRplStart + (nIdxEnd - nIdxStart)),
assem.Substring(nIdxRplStart, nIdxRplStart + (nIdxRplEnd -
nIdxRplStart)));
}
if
(typeName.IndexOf("LineNode") !=
-1)
{
//
types binding to ensure loading previous versions
typeName = typeName.Replace("LineNode", "Line");
}
// The
following line of code returns the type.
typeToDeserialize = Type.GetType(String.Format("{0}, {1}", typeName, assemblyName));
return
typeToDeserialize;
}
}
Please let us
know if any concern.
Regards,
Ashok Kumar.
Hi Ranjan,
Thanks for your update.
We are afraid that we are not able to reproduce the reported issue. Could you please confirm the version of dll’s that you are currently using 3.3 or 12.3.The dll’s provided by you in the last update is not sufficient to run the project (3.302.0.0).We have the checked the project with the latest(12.3) dll’s.We faced the issues as shown in the video.
Kindly provide us a runnable sample to proceed further.
Regards,
Swarnesh K
Hi Ranjan,
Thanks for your update.
We have analysed your project
by adding the dependent dll’s and we could not able to reproduce the reported
exception in our side. Please refer the below video file and project file for
your reference.
Please let us know if any
concern.
Regards,
Ashok Kumar.