Welcome to the Xceed Community | Help
Community Search  

StreamImageToBrowser with UseOutOfProcessRendering

Sort Posts: Previous Next
  •  11-01-2007, 2:48 PM Post no. 6564

    StreamImageToBrowser with UseOutOfProcessRendering

    Hello,

    Can you please tell me if it is possible to use the Out-Of-Process Renderer Service with an ImageResponse set to StreamImageToBrowser?

    I have attempted to do this but I get a NullReferenceException on the following line:

    chartServerControl1.RenderControl(Nothing)


    Many Thanks

    Gareth
  •  11-02-2007, 10:08 AM Post no. 6565 in reply to 6564

    Re: StreamImageToBrowser with UseOutOfProcessRendering

    Looking at the UseOutOfProcessRendering property:

    "When using out of process rendering no GDI+ or OpenGL calls will occur in the ASPNET process making the rending of the control fail safe. In order to enable this feature <b>you must have the Xceed Chart for ASP.NET Renderer Service installed and running.</b> Out of process rendering slows down the control. Out of process rendering is disabled by default."

    This <a href="http://doc.xceedsoft.com/products/Xceedchart/HTML_image_map_and_Binary_image_stream_to_browser.html">Topic</a> might help us get the wanted result.
    Charles Bérubé-Rémillard
    Technical Support
    Xceed Software Inc.
  •  11-05-2007, 3:36 AM Post no. 6566 in reply to 6565

    Re: StreamImageToBrowser with UseOutOfProcessRendering

    Thank you for your response. I did actually have the Renderer Service installed and running. But perhaps I should go more back to basics.

    OS: Windows 2003 Server Standard SP2
    Xceed Chart for ASP.NET: version 4.1.100.0

    I have installed the Renderer Service and have it running with the following configuration

    <Configuration MachineName="localhost" Password="" ServiceManagerPort="8086" RendererStartPort="8087" RenderProcessCount="2" KillTimeout="5000" EnableMaxRenderCount="false" MaxRenderCount="1000" EnableMaxMemUsage="true" MaxMemUsage="102400" EnableMaxRenderTime="true" MaxRenderTime="00:00:30" MonitorTimeSpan="1000" />

    The service starts correctly and if I telnet to localhost on port 8086 I can get a connection. This seems to confirm that the configuration is being loaded correctly.

    I have set up the Xceed Chart for ASP.NET sample site, and I can confirm that charts are being produced correctly with the normal in-process rendering.

    I have then added the following code to both Getting Started\Basic Chart and Getting Started\Image Response.

    Dim settings As GeneralSettings = chartServerControl1.ServerConfiguration.GeneralSettings
    settings.UseOutOfProcessRendering = True
    settings.ServiceManagerURL = "http://localhost:8086"

    With this UseOutOfProcessRendering code in place both charts fail to be produced with no errors being reported. The page returns after 5-6s perhaps because of the MaxRenderRequestAttempts and TimeoutBetweenRenderRequests default values.

    Interestingly if I shut down the rendering service and try again I get the following error "Unable to connect to the remote server Check out whether the Xceed Chart for ASP.NET Renderer Service is started". The fact that I don't get this when the rendering service is running would seem to me to indicate that the Chart Control is able to communicate with the Rendering Service when it is running, but just not producing charts.

    Can you please check whether the rendering service works at all? and if it does can you give me any advice as to what I should try to get it working?

    Thanks again

    Gareth
  •  11-14-2007, 3:18 PM Post no. 6567 in reply to 6566

    Re: StreamImageToBrowser with UseOutOfProcessRendering

    We are currently investigating this issue.
    Charles Bérubé-Rémillard
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.