![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Can't load themes in Client Profile | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Importing | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | chris |
| Priority: | Low | ||
| Version: | TeeChart.NET 2014 4.1.2014.12154 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=4&t=15354 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
This works fine with the regular TeeChart.dll but fails with the Client Profile dll: Chart1 = new TChart(); this.Controls.Add(Chart1); Chart1.Dock = DockStyle.Fill; Area area = new Area(); area.FillSampleValues(); Chart1.Series.Add(area); Steema.TeeChart.Themes.ClassicTheme chartTheme2 = new Steema.TeeChart.Themes.ClassicTheme(Chart1.Chart); try { chartTheme2.Apply(Chart1.Chart); } catch (Exception ex) { Console.WriteLine(ex.Message); } First, the ClassicTheme.ten isn't found (it has to be added to the ClientProfile project TeeChart.Client40, and probably the other .ten files too). Then, I still get a SerializationException: System.Runtime.Serialization.SerializationException was unhandled HResult=-2146233076 Message=No se puede encontrar el ensamblado 'TeeChart, Version=4.1.2013.5281, Culture=neutral, PublicKeyToken=9c8126276c77bdb7'. Source=mscorlib StackTrace: en System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly() en System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name) en System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable) en System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record) en System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum) en System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run() en System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) en System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) en System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream) en Steema.TeeChart.Import.TemplateImport.Load(Stream stream) en C:\root\TeeChartforNET\Version 4\Sources\TeeChart\Export\Exports.cs:línea 7322 en Steema.TeeChart.Themes.Theme.ApplyFromResource(Chart Dest, String ResourceName) en C:\root\TeeChartforNET\Version 4\Sources\TeeChart\Theme.cs:línea 733 en Steema.TeeChart.Themes.ClassicTheme.Apply() en C:\root\TeeChartforNET\Version 4\Sources\TeeChart\Themes\ClassicTheme.cs:línea 73 en Steema.TeeChart.Themes.TeeChartTheme.Apply(Chart AChart) en C:\root\TeeChartforNET\Version 4\Sources\TeeChart\Themes\TeeChartTheme.cs:línea 75 en WindowsFormsApplication1.Form1.InitializeChart() en C:\Users\norike\documents\visual studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:línea 38 en WindowsFormsApplication1.Form1..ctor() en C:\Users\norike\documents\visual studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:línea 20 en WindowsFormsApplication1.Program.Main() en C:\Users\norike\documents\visual studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs:línea 18 en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() en System.Threading.ThreadHelper.ThreadStart_Context(Object state) en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) en System.Threading.ThreadHelper.ThreadStart() InnerException: