Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

FilePath and ImageUrl for Filesystem Deployment scenario

Last post 07-04-2008 6:23 by dbt_limited. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-27-2008 5:37

    FilePath and ImageUrl for Filesystem Deployment scenario

    I cannot get the filesystem scenario working as described in the knowledgebase.

    I keep getting the following error: "/chart_images' is not a valid virtual path.

     

    What am I doing wrong. ? 

    My code is as follows:

    UltraChart1.DeploymentScenario.Scenario = Infragistics.UltraChart.Shared.Styles.ImageDeploymentScenario.FileSystem

    UltraChart1.DeploymentScenario.FilePath =  "/chart_images"

    UltraChart1.DeploymentScenario.ImageURL =  "/chart_images/2d_barchart_#SEQNUM(500).jpg"

     

    I have followed article Knowledge Base Article: KB09850 to no avail

    • Post Points: 20
  • 06-27-2008 7:49 In reply to

    Re: FilePath and ImageUrl for Filesystem Deployment scenario

    You can try:

    this.UltraChart1.DeploymentScenario.FilePath = "chart_images";

    this.UltraChart1.DeploymentScenario.ImageURL = "chart_images/2d_barchart_#SEQNUM(500).jpg";

    Best regards,
    Teodor Taushanov
    • Post Points: 20
  • 06-27-2008 8:33 In reply to

    Re: FilePath and ImageUrl for Filesystem Deployment scenario

    Hi Teodor,

    thanks. That works if the "chart_images" folder is in the same location as the page displaying the chart image.

    But I want to have one folder called "chart_images" in the root of the application to hold all chart images. The following code I would expect to work but it does not. How do I achieve this result?

    UltraChart1.DeploymentScenario.FilePath = "'http://localhost:2612/myapplication/chart_images"

    UltraChart1.DeploymentScenario.ImageURL = "'http://localhost:2612/myapplication/chart_images/2d_barchart_#SEQNUM(500).jpg"

    • Post Points: 20
  • 06-30-2008 4:35 In reply to

    Re: FilePath and ImageUrl for Filesystem Deployment scenario

    For your case you need to use something like:

    this.UltraChart1.DeploymentScenario.FilePath = "~/chart_images";

    this.UltraChart1.DeploymentScenario.ImageURL = "http://localhost:57475/WebSite2/chart_images/2d_barchart_#SEQNUM(500).jpg";

    Best regards,
    Teodor Taushanov
    • Post Points: 20
  • 07-04-2008 6:23 In reply to

    Re: FilePath and ImageUrl for Filesystem Deployment scenario

    superb... thanks

    • Post Points: 5
Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems