Page 1 of 1

Unable to Compile

Posted: Mon Jan 09, 2006 3:55 pm
by 9639812
We are trying to upgrade our system from "TeeChart for .NET v2 Evaluation" to "Final Release" which is "TeeChart for .NET v2". TeeChart.dll version number is "2.0.2179.21172".
We are not able to compile with the final release. We are getting the following error while compiling.

Error 1 The "GenerateResource" task failed unexpectedly.
System.Reflection.TargetInvocationException: Type in the data at line 228, position 5, cannot be loaded because it threw the following exception during construction: Unable to cast object of type 'System.Object[]' to type 'Steema.TeeChart.Styles.StringList'. ---> System.Xml.XmlException: Type in the data at line 228, position 5, cannot be loaded because it threw the following exception during construction: Unable to cast object of type 'System.Object[]' to type 'Steema.TeeChart.Styles.StringList'. Line 228, position 5. ---> System.InvalidCastException: Unable to cast object of type 'System.Object[]' to type 'Steema.TeeChart.Styles.StringList'.
at Steema.TeeChart.Import.Imports.DeserializeFrom(SerializationInfo info, StreamingContext context)
at Steema.TeeChart.Chart..ctor(SerializationInfo info, StreamingContext context)
--- End of inner exception stack trace ---

--- End of inner exception stack trace ---
at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e)
at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFile)
at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, ArrayList inputs, ArrayList outputs, Boolean sourcePath, String language, String namespacename, String filename, String classname, Boolean publicClass)
at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, ArrayList inputs, ArrayList outputs, Boolean sourcePath, String language, String namespacename, String filename, String classname, Boolean publicClass)
at Microsoft.Build.Tasks.GenerateResource.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) Receivables

Please help me solving this proble.
I'll appreciate any help.

Thanks, Kartic

Posted: Mon Jan 09, 2006 4:04 pm
by narcis
Hi Kartic,

Can you please have a look at this forums thread, which is about the same issue, to see if it helps solving your problem.

Unable to Compile

Posted: Mon Jan 09, 2006 5:00 pm
by 9639812
Error does not indicate in which form the error exists.
Even if I add a new Tee chart to a new form, I cannot open a old form with TeeChart, or compile my project.

It is failing to execute "GenerateResource" in Microsoft.Common.targets
Kartic
narcis wrote:Hi Kartic,

Can you please have a look at this forums thread, which is about the same issue, to see if it helps solving your problem.

Posted: Tue Jan 10, 2006 7:47 am
by Chris
Hello Kartic,

If you would be so kind, we are going to need your help to be able to track this issue down.

From which version of TeeChart for .NET were you upgrading? Could you please try creating a new VS2003 WinForm project and adding a TeeChart for .NET control (your original, older version) to it and then add a series to the chart using the chart editor. If you now upgrade this project to VS2005 and the latest version of TeeChart for .NET, can you reproduce this error?

I believe this error is due to a line of code that is automatically written into the InitializeComponent() method of the WinForm by older versions of TeeChart.