Import fail.
Import fail.
We use Web Chart. The version of TeeChart.dll is 3.5.3225.32185.
We made a custom series which derived from Points class.
We tried to export template and import that again. And we got this exception:
Exception has been thrown by the target of an invocation.
Stack infomation: at System.RuntimeMethodHandle._SerializationInvoke(IRuntimeMethodInfo method, Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at Steema.TeeChart.Import.TemplateImport.Load(Stream stream)
Object reference not set to an instance of an object.
Stack infomation: at Steema.TeeChart.Import.Imports.InternalFindType(String typeName, Assembly a)
at Steema.TeeChart.Import.Imports.FindType(String typeName)
at Steema.TeeChart.Import.Imports.DeserializeFrom(SerializationInfo info, StreamingContext context)
at Steema.TeeChart.Chart..ctor(SerializationInfo info, StreamingContext context)
We think this should be a bug of our version. Could you tell us how to solve this problem? We are very urgent with this problem.
We made a custom series which derived from Points class.
We tried to export template and import that again. And we got this exception:
Exception has been thrown by the target of an invocation.
Stack infomation: at System.RuntimeMethodHandle._SerializationInvoke(IRuntimeMethodInfo method, Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at Steema.TeeChart.Import.TemplateImport.Load(Stream stream)
Object reference not set to an instance of an object.
Stack infomation: at Steema.TeeChart.Import.Imports.InternalFindType(String typeName, Assembly a)
at Steema.TeeChart.Import.Imports.FindType(String typeName)
at Steema.TeeChart.Import.Imports.DeserializeFrom(SerializationInfo info, StreamingContext context)
at Steema.TeeChart.Chart..ctor(SerializationInfo info, StreamingContext context)
We think this should be a bug of our version. Could you tell us how to solve this problem? We are very urgent with this problem.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Import fail.
Hi mks-ydi,
You should serialize/deserialize custom series as explained on this thread.
Hope this helps!
You should serialize/deserialize custom series as explained on this thread.
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Import fail.
Thank you for your explain. But our problem is different. Our exception is "Object reference not set to an instance of an object." which throwed from "Steema.TeeChart.Import.Imports.InternalFindType(String typeName, Assembly a)".
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Import fail.
Hi mks-ydi,
Can you reproduce this using a standard TeeChart series instead of a custom series? Can you reproduce it using latest TeeChart for .NET v3 release available at the client download area? If the problem persists, can you please attach a simple example project we can run "as-is" to reproduce the problem here?
Thanks in advance.
Can you reproduce this using a standard TeeChart series instead of a custom series? Can you reproduce it using latest TeeChart for .NET v3 release available at the client download area? If the problem persists, can you please attach a simple example project we can run "as-is" to reproduce the problem here?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Import fail.
Hi Narcís
This problem only happen when we use custom series. Is the latest version "TeeChartNET3UpdateBuild.exe"?
Thanks
mks-ydi
This problem only happen when we use custom series. Is the latest version "TeeChartNET3UpdateBuild.exe"?
Thanks
mks-ydi
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Import fail.
Hi mks-ydi,
A fix for non-functional custom serialization/deserialization was implemented in build 3.2.2930.22967/8 from January 2008, as you can see at the version info page, which is a newer version than the one you are using.
Could you please check if build 3.5.3700.30574/5 from February 2010 solves the problem at your end?
Thanks in advance.
In your first post you said:Is the latest version "TeeChartNET3UpdateBuild.exe"?
That's not the last version available, which is build 3.5.3700.30574/5 from 17th February 2010 and the installer is called TeeChartNET3UpdateBuild.exe as you already suggested.We use Web Chart. The version of TeeChart.dll is 3.5.3225.32185.
A fix for non-functional custom serialization/deserialization was implemented in build 3.2.2930.22967/8 from January 2008, as you can see at the version info page, which is a newer version than the one you are using.
Could you please check if build 3.5.3700.30574/5 from February 2010 solves the problem at your end?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Import fail.
Hi Narcís
I have tried TeeChart.dll 3.5.3700.30575. The problem is still there. I made a sample
Thanks
mks-ydi
I have tried TeeChart.dll 3.5.3700.30575. The problem is still there. I made a sample
Thanks
mks-ydi
Re: Import fail.
Hi Narcís
I put sample project on attachment of last POST. Hoping your solution.
Thanks
mks-ydi
I put sample project on attachment of last POST. Hoping your solution.
Thanks
mks-ydi
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Import fail.
Hi mks-ydi,
I'm afraid the attachment didn't get through. Please try submitting it again and check that the forums board doesn't give any error message when doing so. Please notice that "bin" and "obj" folders are not necessary, just "Properties" folder. Alternatively you can post your files at http://www.steema.net/upload/.
Thanks in advance.
I'm afraid the attachment didn't get through. Please try submitting it again and check that the forums board doesn't give any error message when doing so. Please notice that "bin" and "obj" folders are not necessary, just "Properties" folder. Alternatively you can post your files at http://www.steema.net/upload/.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Import fail.
Hi Narcis
I'm sorry I did notice message. I put project on attachment again.
Thanks
mks-ydi
I'm sorry I did notice message. I put project on attachment again.
Thanks
mks-ydi
- Attachments
-
- TeeChartBug.zip
- (163.61 KiB) Downloaded 507 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Import fail.
Hi mks-ydi,
Thanks for the project. I could reproduce the issue here and we are investigating it. I'll get back to you when we have further news. I have checked that this works fine in WinForms applications:
Thanks for the project. I could reproduce the issue here and we are investigating it. I'll get back to you when we have further news. I have checked that this works fine in WinForms applications:
Code: Select all
public class CustomSeries : Steema.TeeChart.Styles.Points
{
public CustomSeries() : this(null) { }
public CustomSeries(Steema.TeeChart.Chart c)
: base(c)
{
}
}
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
tChart1.Series.Add(new CustomSeries()).FillSampleValues();
System.IO.MemoryStream msTemplate = new System.IO.MemoryStream();
tChart1.Export.Template.Save(msTemplate);
msTemplate.Position = 0;
tChart1.Import.Template.Load(msTemplate);
}
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Import fail.
Hi mks-ydi,
After investigating the issue here we think this is a WebChart bug which I have added to the defect list (TF020156259) to be fixed for future releases.
After investigating the issue here we think this is a WebChart bug which I have added to the defect list (TF020156259) to be fixed for future releases.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Import fail.
Hi Narcís
Thank you Narcís. When would you release next version?
Thanks
mks-ydi
Thank you Narcís. When would you release next version?
Thanks
mks-ydi
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Import fail.
Hi mks-ydi,
A maintenance release will be published imminently but a fix to this issue won't make into it. Maintenance versions are usually published in a 6-8 week fashion. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.
A maintenance release will be published imminently but a fix to this issue won't make into it. Maintenance versions are usually published in a 6-8 week fashion. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Import fail.
Hi Narcís
We have found a way to slove our problem. It seems we don't need worry about this bug now. Thank you for your help.
Thanks
mks-ydi
We have found a way to slove our problem. It seems we don't need worry about this bug now. Thank you for your help.
Thanks
mks-ydi