oivoodoo Report post Posted February 19, 2010 Hi, everyone. I have problem with fusioncharts evaluation in the ASP .NET. This is my page. public partial class Default : Page { public String Url { get { return HttpUtility.UrlEncode("Data.aspx?FCTime=75757"); } } } .Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="test.Default". .body. .form id="form1" runat="server". .div. .object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="350" height="350" name="SurveyChart". .param name="allowScriptAccess" value="always". .param name="movie" value="http://localhost/sites/test/_layouts/IEFS/FusionCharts/MSCombi3D.swf". .param name="FlashVars" value="&chartWidth=350&chartHeight=350&debugMode=1&dataURL=<%= Url %>". .param name="quality" value="high". .embed src="http://localhost/sites/test/_layouts/IEFS/FusionCharts/MSCombi3D.swf" FlashVars="&chartWidth=350&chartHeight=350&debugMode=1&dataURL=<%= Url %>" quality="high" width="350" height="350" name="ChartName" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer". .object. .div. .form. .body. My Data page is public partial class Data : Page { protected override void Render(HtmlTextWriter writer) { Response.ContentType = "text/xml"; Response.Write(""); } } And I have error: [p]"NFO: XML Data provided using dataURL method. dataURL provided: Data.aspx?FCTime=75757 dataURL invoked: Data.aspx?FCTime=75757&FCTime=76 ERROR: An error occurred while loading data. Please check your dataURL, by clicking on the "dataURL invoked" link above, to see if it's returing valid XML data. Common causes for error are: No URL Encoding provided for querystrings in dataURL. If your dataURL contains querystrings as parameters, you'll need to URL Encode the same. e.g., Data.asp?id=101&subId=242 should be Data%2Easp%3Fid%3D101%26subId%3D242 Different sub-domain of chart .swf and dataURL. Both need to be same owing to sandbox security. Network error"[/p] What can I do? I really doesn't know, what's the problem. Please help me. Thanks. Share this post Link to post Share on other sites
oivoodoo Report post Posted February 19, 2010 I found the problem but only for my demo project. I used swf chart from another subdomain. But when I try to use fusioncharts from my sharepoint http://localhost:111/ site. I see same error message from swf chart control. I change all urls to '/_layouts/sites/FUSIONCHARTS/.swf' and dataURL -> '/_layouts/sites/DataHandler.aspx'. And It doesn't work for me. What can I do else? Did you see same errors? Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted February 19, 2010 (edited) Hi, Welcome to FusionCharts forum. In case you get a "Error in Loading Data" message in your chart, it means that FusionCharts could not find XML data at the specified URL. Could you please check the following? 1) If you've actually provided dataURL or dataXML. 2) You're passing relative URLs for dataURL, and not absolute URLs. 3) If you've to pass parameters to your dataURL data provider page from FusionCharts, make sure they're URLEncoded in the dataURL, when providing to FusionCharts. 4) When using dataURL method, make sure that the SWF File and data provider page are on the same sub-domain. Also, please refer to the link below for further details on the same:- Ref.- http://www.fusioncharts.com/docs?/Debug/Basic.html Hope this helps. Edited February 19, 2010 by Guest Share this post Link to post Share on other sites
oivoodoo Report post Posted February 19, 2010 It didn't help me. Please see my source code: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="350" height="350" name="SurveyChart"> <param name="allowScriptAccess" value="always" /> <param name="movie" value="/_layouts/IEFS/FusionCharts/MSCombi3D.swf"/> <param name="FlashVars" value="&chartWidth=350&chartHeight=350&debugMode=1&dataURL=/_layouts/IEFS/SurveyHandler.aspx" /> <param name="quality" value="high" /> <embed src="/_layouts/IEFS/FusionCharts/MSCombi3D.swf" FlashVars="&chartWidth=350&chartHeight=350&debugMode=1&dataURL=/_layouts/IEFS/SurveyHandler.aspx" quality="high" width="350" height="350" name="ChartName" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> As you can see all rules are valid. If I try to open my link handler, I see valid xml code(for example: ...). Subdomain - ok, relative urls - ok and another rules are ok. What kind of problem I get it? Share this post Link to post Share on other sites
oivoodoo Report post Posted February 19, 2010 I am using fusioncharts controls in the sharepoint portal for your information. Share this post Link to post Share on other sites
Guest Rajroop Report post Posted January 7, 2011 Hi there, We proudly announce the release of FusionCharts for SharePoint in beta. FusionCharts for SharePoint helps you create interactive & data-driven charts in SharePoint, without having to write a line of code. The charts are created using a wizard and can connect to various data sources such as SharePoint Lists, CSV, MS SQL, Oracle, Excel & BDC. You can add drill-down and export capabilities to each chart and configure both cosmetic and functional aspects. You can download the fully-functional version from www.fusioncharts.com/sharepoint - we would love to have your feedback on this. Please post your suggestions and any bugs as replies to the forum thread at: FusionCharts for SharePoint beta impression Share this post Link to post Share on other sites