Diego Posted June 23, 2020 Report Share Posted June 23, 2020 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>'); } Quote Link to comment Share on other sites More sharing options...
Diego Posted June 23, 2020 Author Report Share Posted June 23, 2020 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. Quote Link to comment Share on other sites More sharing options...
Diego Posted July 20, 2020 Author Report Share Posted July 20, 2020 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 Quote Link to comment Share on other sites More sharing options...
Diego Posted July 21, 2020 Author Report Share Posted July 21, 2020 Ok. The problem was the ChartFX PSS services startied running...stopping and disabling it fixed the use and started working again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.