User (Legacy) Posted July 27, 2005 Report Share Posted July 27, 2005 I am using ChartFX as a child control in a custom SharePoint web part, following the instructions in the document titled "ChartFX and SharePoint" (http://www.softwarefx.com/SFXDownloads/PDFs/ChartFX_SharePoint_wp.pdf). Everything works fine on my development computer. However, when I try to use my web part on the deployment computer, there is a problem. Here's what I did on the deployment machine: - install ChartFX for .NET - install the ChartFX assemblies into the GAC (using Windows Explorer) - excluded the chartfx62 virtual directory (using SharePoint Central Administration) - change the trust level to "Full" in the web.config file for the SharePoint web site - import my custom web part into a web part page - drag and drop the custom web part into a web part zone After dropping the custom web part into a web part zone, SharePoint displays a page with the title "Error" and the message "An unexpected error has occurred." We were able to get the web part to work on the deployment computer by installing Visual Studio .NET and building the custom web part on the deployment machine. But this is not a viable solution in our production environment. Can anyone tell me how to deploy a custom web part that inlcudes ChartFX as a child control? Thanks, Dennis Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 26, 2006 Author Report Share Posted January 26, 2006 Dennis I am wondering you solved this problem or not? I am having a same problem. Best Regards, Dharmesh Trivedi "Dennis McCarthy" <nospam@kronos.com> wrote in message news:KDd6t5qkFHA.2040@webserver3.softwarefx.com... > I am using ChartFX as a child control in a custom SharePoint web part, > following the instructions in the document titled "ChartFX and SharePoint" > (http://www.softwarefx.com/SFXDownloads/PDFs/ChartFX_SharePoint_wp.pdf). > Everything works fine on my development computer. However, when I try to > use my web part on the deployment computer, there is a problem. > > Here's what I did on the deployment machine: > - install ChartFX for .NET > - install the ChartFX assemblies into the GAC (using Windows Explorer) > - excluded the chartfx62 virtual directory (using SharePoint Central > Administration) > - change the trust level to "Full" in the web.config file for the SharePoint > web site > - import my custom web part into a web part page > - drag and drop the custom web part into a web part zone > > After dropping the custom web part into a web part zone, SharePoint displays > a page with the title "Error" and the message "An unexpected error has > occurred." > > We were able to get the web part to work on the deployment computer by > installing Visual Studio .NET and building the custom web part on the > deployment machine. But this is not a viable solution in our production > environment. > > Can anyone tell me how to deploy a custom web part that inlcudes ChartFX as > a child control? > > Thanks, > Dennis > > Link to comment Share on other sites More sharing options...
Software FX Posted February 5, 2006 Report Share Posted February 5, 2006 This might help (copied from chartfx.internet.62 newsgroup): > Problem solved. I had to put my application DLL in the GAC and everything > worked. > "Dharmesh Trivedi" <Dharmesh.Trivedi@sanofi-aventis.com> wrote in message > news:yKRxpCfIGHA.476@webserver3.softwarefx.com... > I would like to create chartFX webpart and please find the code below. > Problem is that whenever I try to put this webpart in the sharepoint portal > , I get "Web Part appears to be causing a problem" > I put chartFX.Base , ChartFX.Borders and ChartFX.Internet dlls in GAC > (C:\winnt\assembly) This is windows 2003 machine. What I am missing. Seems > like I have to do something special terms of registering but I do not know > what. Please help. > > > using System; > > using SoftwareFX.ChartFX.Internet.Server; > > using System.Web.UI; > > using System.Web.UI.WebControls; > > using System.ComponentModel; > > using System.Xml.Serialization; > > using System.Runtime.InteropServices; > > using Microsoft.SharePoint.WebPartPages; > > using Microsoft.SharePoint.WebPartPages.Communication; > > using Microsoft.SharePoint.Utilities; > > > > namespace wpTest > > { > > /// <summary> > > /// Description for WebPart1. > > /// </summary> > > [DefaultProperty("Text"), > > ToolboxData("<{0}:wpTestrunat=server></{0}:wpTest>"), > > XmlRoot(Namespace="wpTest")] > > public class wpByStatus : Microsoft.SharePoint.WebPartPages.WebPart > > { > > > private const string defaultText = ""; > > private string text = defaultText; > > private Chart Chart1 = null; > > [browsable(true), > > Category("Miscellaneous"), > > DefaultValue(defaultText), > > WebPartStorage(Storage.Personal), > > FriendlyName("Text"), > > Description("Text Property")] > > public string Text > > { > > get > > { > > return text; > > } > > set > > { > > text = value; > > } > > } > > > > protected override void RenderWebPart(HtmlTextWriter output) > > { > > EnsureChildControls(); > > //this.Chart1.RenderControl( output ); > > this.Chart1.RenderControl(output); > > output.Write(SPEncode.HtmlEncode(Text)); > > } > > protected override void CreateChildControls() > > { > > base.CreateChildControls(); > > Chart1 = new Chart(); // I add this line and webpart starts failing > > } > > } > > } > > -- Francisco Padron www.chartfx.com "Dharmesh Trivedi" <Dharmesh.Trivedi@sanofi-aventis.com> wrote in message news:vfcfDnoIGHA.476@webserver3.softwarefx.com... > Dennis > I am wondering you solved this problem or not? I am having a same > problem. > Best Regards, > Dharmesh Trivedi > "Dennis McCarthy" <nospam@kronos.com> wrote in message > news:KDd6t5qkFHA.2040@webserver3.softwarefx.com... >> I am using ChartFX as a child control in a custom SharePoint web part, >> following the instructions in the document titled "ChartFX and >> SharePoint" >> (http://www.softwarefx.com/SFXDownloads/PDFs/ChartFX_SharePoint_wp.pdf). >> Everything works fine on my development computer. However, when I try to >> use my web part on the deployment computer, there is a problem. >> >> Here's what I did on the deployment machine: >> - install ChartFX for .NET >> - install the ChartFX assemblies into the GAC (using Windows Explorer) >> - excluded the chartfx62 virtual directory (using SharePoint Central >> Administration) >> - change the trust level to "Full" in the web.config file for the > SharePoint >> web site >> - import my custom web part into a web part page >> - drag and drop the custom web part into a web part zone >> >> After dropping the custom web part into a web part zone, SharePoint > displays >> a page with the title "Error" and the message "An unexpected error has >> occurred." >> >> We were able to get the web part to work on the deployment computer by >> installing Visual Studio .NET and building the custom web part on the >> deployment machine. But this is not a viable solution in our production >> environment. >> >> Can anyone tell me how to deploy a custom web part that inlcudes ChartFX > as >> a child control? >> >> Thanks, >> Dennis >> >> > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.