Page 1 of 1
GetChartASPX in different sub folders
Posted: Fri Jul 06, 2012 9:45 am
by 15662902
I have just upgraded from V1, to V2012 as I have a project which has multiple folders and I now require graphs in more than one folder, if I put the GetChart.aspx folder it works fine, but if I try having more than one GetChart.aspx I get
Error 25 The item "obj\Debug\WebForm.GetChart.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter.
I have tried moving the GetChart.aspx into the root and nothing can find it,
Is there a way around this, apart from setting TempChart property to "File", which I don't want to do
Re: GetChartASPX in different sub folders
Posted: Mon Jul 09, 2012 10:17 am
by 10050769
Hello mikethelad,
Using GetChart.aspx in the root of the application (or any other folder) should be ok if the location has all the correct access rights and is pathed with the GetChartFile property. To set a path to GetChart.aspx, see the GetChartFile property when a TeeChart (WebChart) is selected on a form at designtime.
The default setting is "GetChart.aspx" which tries to locate the file in the same folder as the page running the request, for the root folder the setting would look like this:
GetChartFile = "/GetChart.aspx"
I hope will help.
Thanks,
Re: GetChartASPX in different sub folders
Posted: Mon Jul 09, 2012 11:15 am
by 15662902
Thanks, works a treat
Re: GetChartASPX in different sub folders
Posted: Wed Jul 11, 2012 4:20 pm
by 15662902
I have now uploaded to the server and all I get is the red cross for the graph, it is unable to find the getchart.aspx, I have double checked and getchart is on ths server as it should be in the root folder
Re: GetChartASPX in different sub folders
Posted: Fri Jul 13, 2012 8:33 am
by 10050769
Hello mikethelad,
Ok. To find the folder, you can do a simple action. Run your project and view in source of webpage what is the GetChart of Webchart what is the path of GetChart.aspx try to acces. When you know the path, if it is correct, you try to solve the problem doing next:
1. - If the folder is in your server you can check the if you have permission in your folder. If you don't have permission to access in the folder I recommend change it and do the test again.
2. - If the folder is in the external server, I recommend you add static page in the folder, try to access in and check what results are you get. If results are correct, is possible you need do something similar in your application with TeeChart, if the same problem appears, doing the same in your static page, the problem is in the folder of your external server.
On the other hand, if the path is incorrect, please change it and try again if your problem is solved.
Thanks,
Re: GetChartASPX in different sub folders
Posted: Fri Jul 13, 2012 10:05 am
by 15662902
Manually copying the GetChartASPX.cs file to the websever has solved the problem, when publishing the site from Visual Studio it only copied the aspx file
Re: GetChartASPX in different sub folders
Posted: Fri Jul 13, 2012 2:58 pm
by 10050769
Hello mikethelad,
Thanks for information. I am glad that your problem is solved.
Thanks,