Jump to content
Software FX Community

fkeller

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by fkeller

  1. Thanks for the document. I was missing the trust level set to Full... Some errors in the document:page 4: Change CfxInteractive to ActiveChartWPpage 4: it says <trust level="full" originurl=""> but must be <trust level="Full" originurl=""> (capital F) Frederic
  2. Hi, My context: WSS 3.0 with Windows Authentification Single Sign-On I'm facing a security issue: HTTP 403 Forbidden when connected with an account not admin on the server running IIS. It works perfectly as long as I am connected with a windows admin account. My context is the development of WebPart for WSS 3.0, thereby I shut down the PSS service as discussed in my previous post: http://community.softwarefx.com/forums/p/8415/19403.aspx#19209. I added the ChartFX.WebForms.config into the web application bin directory ------------ <chartfx> <PssOutput> <DefaultHandler>ChartFX.WebForms.Internal.OutputFileHandler,ChartFX.WebForms</DefaultHandler> </PssOutput> </chartfx> ---------------------- What can I configure the change the authentification? I read the articles about the subject, Q7621009. How to use Chart FX and Forms Authentication to secure your charts, but all are related to the PSS service (shut down in my case...). I tried to add <Authenticate>false</Authenticate> as well but does not work... Thank you for your reply Frederic
  3. Precisions regarding Scenario 2. The Chart is correctly added to the WebPart Child Controls. ------------------------------------- protected override void CreateChildControls() { base.CreateChildControls(); ChartFX.WebForms.Chart myChart = new ChartFX.WebForms.Chart(); this.Controls.Add(myChart); } ------------------------------------- But to make the chart rendered in my SharePoint Page with the WebPart containing the chart I need to add the assemblies to the bin directory in addition to the GAC....??!!
  4. Hi, My context: WebPart development in WSS 3.0 (SharePoint) Scenario 1: get the "Assembly does not allow partially trusted callers" error I get the following error when adding the ChaftFX assemblies to the bin directory: "Assembly does not allow partially trusted callers". I have registered as SafeControls all the assemblies with all namespaces in the web.config. ------------------------------------------------------------------ <SafeControl Assembly="ChartFX.WebForms, Version=7.0.2845.31164, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms" TypeName="Chart" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms, Version=7.0.2845.31164, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.DataProviders" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms, Version=7.0.2845.31164, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.Galleries" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms, Version=7.0.2845.31164, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.Internal" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms, Version=7.0.2845.31164, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.Internal.Highlight" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms, Version=7.0.2845.31164, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.Internal.Pss" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms.Base, Version=7.0.2845.31033, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms.Base, Version=7.0.2845.31033, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.Adornments" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms.Base, Version=7.0.2845.31033, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.Internal" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms.Base, Version=7.0.2845.31033, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.Internal.Pss" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms.Dhtml, Version=7.0.2845.31087, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.Dhtml" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms.Adornments, Version=7.0.2845.31057, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.Adornments" TypeName="*" Safe="True" /> <SafeControl Assembly="ChartFX.WebForms.Adornments, Version=7.0.2845.31057, Culture=Neutral, PublicKeyToken=a1878e2052c08dce" Namespace="ChartFX.WebForms.Internal" TypeName="*" Safe="True" /> ------------------------------------------------------------------ But no success...exception raised. Scenario 2: "file not found" in SharePoint. I tried then to add the assemblies to the GAC instead. Now I don't get the previous error (..partially trusted callers..) and the webpart does not throw any execption, but I get a "File not found" in SharePoint... SharePoint is looking in the bin dir for the assemblies. Just to give a try I mixed both scenarios and it works...??!! Seems that SharePoint check the security with the assemblies in the GAC and then wants to load them only from the bin directory. But having the assemblies in both, GAC & bin, is not a solution. How can I configure SharePoint to use either scenario 1 or scenario 2? I want to allow partially trusted callers to the ChartFX assemblies, so I can have them in the bin directory. Can I do that? Thank you for your support Frederic Keller
  5. Hi, I am developing web parts for Sharepoint 3.0. When I shutdown the PSS Service, my chart are rendered, but when I start the PSS Service, then the chart image is no more rendered. When I check at the source <img> and try to access directly via the URL to the chart image I get a Security Exception... -------------------------------- file:///c:/temp/moz-screenshot.jpg Server Error in '/' Application. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] ChartFX.Pss.HttpHandler..ctor() +0 Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 --------------------------------------------------- Since I am in Sharepoint my pages use the Windows Authentification method (Single sign-on). How can I configure Chart FX and PSS ? Thanky for your answers.
×
×
  • Create New...