Hi,
I am using TeeChart .NET Version 1.1.1879.21176.
The following error occurs 3 times when attempting to use Import.Template.Load(filename) on a chart for the first time.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
Additional information: File or assembly name System.Drawing, or one of its dependencies, was not found.
The file definetly exists and is valid.
Any help would be appreciated?
Thanks
Vaughan
System.IO.FileNotFoundException
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Vaughan,
It works fine here using:
BTW: Please notice that latest v1 available is Build 1.1.2004.16592.
If you can't solve this problem could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
It works fine here using:
Code: Select all
tChart1.Import.Template.Load(@"C:\Temp\Chart1.ten");
If you can't solve this problem could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
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 |
Hi,
I should have mentioned that the code does actually load the file.
However, from the Debug > Exceptions... menu in VS.NET
Choose Break into the debugger for System.IO.FileNotFoundException.
Run the code and it will throw the exception 3 times.
Message "File or assembly name System.Drawing, or one of its dependencies, was not found."
It looks like this method attempts to find System.Drawing for whatever reason and cannot find it.
Interestingly I have noticed if I set the reference System.Drawing property : Copy Local = True, I no longer get the exception.
BTW: 1.1.2004.16592 has been tested here and it has an issue with distributing it, so I have to stick with this version.
Thanks anyway.
I should have mentioned that the code does actually load the file.
However, from the Debug > Exceptions... menu in VS.NET
Choose Break into the debugger for System.IO.FileNotFoundException.
Run the code and it will throw the exception 3 times.
Message "File or assembly name System.Drawing, or one of its dependencies, was not found."
It looks like this method attempts to find System.Drawing for whatever reason and cannot find it.
Interestingly I have noticed if I set the reference System.Drawing property : Copy Local = True, I no longer get the exception.
BTW: 1.1.2004.16592 has been tested here and it has an issue with distributing it, so I have to stick with this version.
Thanks anyway.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Vaughan,
We've been able to reproduce what you reported. We've also done some investigation and found that what causes the error is the method below when being called with System.Drawing assembly.
Considering this I'm afraid there's nothing we can do here.
We've been able to reproduce what you reported. We've also done some investigation and found that what causes the error is the method below when being called with System.Drawing assembly.
Code: Select all
return Assembly.LoadWithPartialName("System.Drawing").GetType(typeName);
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 |
Any information
Hi Vaughan and Narcis
I get exactly the same error.
I tried the "CopyLocal = True" thing, but it did not help.
Can you suggest any workarounds?
Reg
I get exactly the same error.
I tried the "CopyLocal = True" thing, but it did not help.
Can you suggest any workarounds?
Reg
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi,
I'm sorry, we've had a good look into this issue and have no workarounds to suggest. Please bear in mind that this issue only occurs in Debug and not Release builds.
I'm sorry, we've had a good look into this issue and have no workarounds to suggest. Please bear in mind that this issue only occurs in Debug and not Release builds.
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/