GetChartASPX in different sub folders

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
mikethelad
Newbie
Newbie
Posts: 58
Joined: Thu Jul 05, 2012 12:00 am

GetChartASPX in different sub folders

Post by mikethelad » Fri Jul 06, 2012 9:45 am

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: GetChartASPX in different sub folders

Post by Sandra » Mon Jul 09, 2012 10:17 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

mikethelad
Newbie
Newbie
Posts: 58
Joined: Thu Jul 05, 2012 12:00 am

Re: GetChartASPX in different sub folders

Post by mikethelad » Mon Jul 09, 2012 11:15 am

Thanks, works a treat

mikethelad
Newbie
Newbie
Posts: 58
Joined: Thu Jul 05, 2012 12:00 am

Re: GetChartASPX in different sub folders

Post by mikethelad » Wed Jul 11, 2012 4:20 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: GetChartASPX in different sub folders

Post by Sandra » Fri Jul 13, 2012 8:33 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

mikethelad
Newbie
Newbie
Posts: 58
Joined: Thu Jul 05, 2012 12:00 am

Re: GetChartASPX in different sub folders

Post by mikethelad » Fri Jul 13, 2012 10:05 am

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: GetChartASPX in different sub folders

Post by Sandra » Fri Jul 13, 2012 2:58 pm

Hello mikethelad,

Thanks for information. I am glad that your problem is solved.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply