Jump to content
Software FX Community
Diego

RenderToStream not generating cookie field

Recommended Posts

 Hello! We are just migrating from old servers (2003) to 2012 servers.. and the graphs arent working proberly because the temp .js files generated dont create the "cookie" section...
     

      Chart chart = new Chart();
            chart.RenderFormat = ".NET";

            MemoryStream content = new MemoryStream();
            StringWriter imgMap = new StringWriter(CultureInfo.InvariantCulture);
            StringWriter htmlTag = new StringWriter(CultureInfo.InvariantCulture);

            chart.RenderToStream(content, imgMap, htmlTag);

Sample temp js in old server: 

function cfx_replace() {
document.write('<object codetype="application/octet-stream" id="" classid="/chartfx70/download/ChartFX.NetIEClient.dll#ChartFX.NetIEClient.Chart" standby="Downloading Chart FX control please wait ..."  WIDTH="375px" HEIGHT="250px" >');
document.write('<param name="Cookies" value="QQBTAFAALgBOAEUAVABfAFMAZQBzAHMAaQBvAG4ASQBkAD0AcABmAHUAcwBzAHEAYQBxAG0AcgBhAHAANQBsAGIAawBpAGMAYgBpAGwAZQA1ADUAOwA="/>');
document.write('<param name="DataPath" value=""/>');
document.write('[Chart FX: .NET Active client requires Internet Explorer and .NET Framework 2.0 or greater installed on the client computer.]');
document.write('</object>');
}

Sample in new server:

function cfx_replace() {
document.write('<object codetype="application/octet-stream" id="" classid="/chartfx70/download/ChartFX.NetIEClient.dll#ChartFX.NetIEClient.Chart" standby="Downloading Chart FX control please wait ..."  WIDTH="375px" HEIGHT="250px" >');
document.write('<param name="DataPath" value=""/>');
document.write('[Chart FX: .NET Active client requires Internet Explorer and .NET Framework 2.0 or greater installed on the client computer.]');
document.write('</object>');
}

 

 

Share this post


Link to post
Share on other sites

I think its working now... we changed /ChartFX/ from virtual directory to application and it seems its working ok... will monitor for a couple of days to see if its that.

 

Share this post


Link to post
Share on other sites

After a few days its stopped working again. What is the process that creates this .js files in the temp folder? suddenly it stoped creating the files and we see nothing changed on the IIS configuration.

Any ideas?

Thanks

Diego

Share this post


Link to post
Share on other sites

Ok. The problem was the ChartFX PSS services startied running...stopping and disabling it fixed the use and started working again.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...