Graphics Server Red X Problem

Discussion in 'ASP.NET / ASP.NET Core' started by kylef14, Jan 19, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am developing a website using the Graphics Server.NET charting components but I am receiving red x's where theimages should load on the production server here at discountasp.

    I installed the Developer's Kit and added the reference to it in my website. I also made sure to setup the following two settings:
    RunTimeImagesFolderLocation=<WBR>"UnderWebApplication"
    RunTimeDir="images"

    Everything works great on my development machine and the images load great and are stored under my web application in the "images" folder like I told them to. And yes the "images" folder exists in my web directory on discountasp.

    However when I upload my website to the server the red x's appear where the charts should. If you View Source on the site and scroll down to the image tag of the chart you see: <IMG SRC="../" instead of <IMG SRC="../images/<filename>" like is there on my development machine.

    I need to get this working. Does anyone have any ideas?

    Thanks
     
  2. What's your website? And can you post your code, especially theGSNetWebChart control tags in the HTML.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Problem Page:
    http://www.stroketracker.com/viewrounds/

    Click on one of the rounds in the list and then look at the red x images that will render on the bottom portion of the screen.

    <CODE>
    private GSNetWebChart chtMain = null;

    //This occurs on the grid.ItemSelected Event you fire when you selected a round
    this.chtMain = new GSNetWebChart();
    this.chtPanel.Controls.Add(this.chtMain);

    Chart chart = chtMain.Chart;

    chart.Width = 400;
    chart.Height = 300;

    chtMain.RunTimeImagesFolderLocation = RunTimeImagesFolderLocation.UnderWebApplication;



    chtMain.RunTimeDir = "images";


    ...


    Continue to Set Up chart


    <END CODE>


    I just wanted to reiterate that this code runs exactly as it should on my development machine.


    My Web.Config file contains this reference:


    <add assembly="GSNetWebHost, Version=3.5.33.0, Culture=neutral, PublicKeyToken=3BFDD1ECE951DCFA"/>


    Any Ideas? My thought is that the process may be failing on the image writetodisk function and therefore the calling function never even gets a filename passed back to it that it can write to the HTML. I think I remember reading in their documentation somewhere that if the folder it is trying to write to does not exist it will not create it. Maybe it has something to do with the images folder. Would it need permissions for the ASPNET user?


    Thanks.
     
  4. I was just looking in the Permission manager and noticed that the Anonymous user has both Read and Write privileges. However there is no Anon ASP.NET user listed for me to assign privileges. Could this be the problem?


    Has anyone succesfully gotten the 3.5 charting controls to work since they were added on the 15th?
     
  5. I just wanted to let you know what else I have tried that still fails:
    • I changed the WriteMode to ByteStream in order to see if it was an "images" folder problembut the problem still persisted.
    • I made a whole new page and simply dragged a chart control on instead of creating one dynamically; I set the RunTimeImagesFolder and RunTimeDir as below and I got the red x again.


    I think the problem lies in your install of the control or a licensing issue. Has anyone succesfully tested the control since you updated to version 3.5. I need to get this resolved as soon as possible.


    Thanks.


    Kyle
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    I looked at the broken image and it looks like that link to the image may be incorrect (http://www.stroketracker.com/)

    We have successfully tested the latest version of graphic server before we deployed it. It should work fine.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  7. vvsharma,


    Thanks for the suggestion but it still did not work. Do I need any type of license files or anything like that in my bin folder?
     
  8. In desperation I have taken down the site and replaced it with a brand new web site in order to test the chart control.


    If you navigate to www.stroketracker.com you will see it.


    I drug the chart on and the tag looks like this:


    <cc1:GSNetWebChart ID="GSNetWebChart1" runat="server" Height="400px" ImageFormat="Jpeg"


    RunTimeDir="images" RunTimeImagesFolderLocation="UnderWebApplication" Width="600px">


    This is what the register assembly section looks like at the top of the page:





    <%@ Register Assembly="GSNetWebHost, Version=3.5.33.0, Culture=neutral, PublicKeyToken=3bfdd1ece951dcfa"


    Namespace="GraphicsServer.GSNet.Charting" TagPrefix="cc1" %>


    The directory structure of the site looks like this:
    /
    /images
    /Bin
    /Default.aspx
    /web.config

    The web.config file looks as follows: (I have tried with the PublicKeyToken in lower and upper caps)



    <compilation debug="false">


    <assemblies>


    <add assembly="GSNetWebHost, Version=3.5.33.0, Culture=neutral, PublicKeyToken=3BFDD1ECE951DCFA"/>


    <add assembly="System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>


    <add assembly="System.Design, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


    <add assembly="System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>


    <add assembly="System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


    <add assembly="System.Web, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


    <add assembly="System.Xml, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>


    <add assembly="System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>





    </assemblies></compilation>





    This setup works great on my machine but does not work on yours. Anyone got any more ideas?
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page