Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Export to PDF not working in Windows Azure hosting environment (Read 19136 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export to PDF not working in Windows Azure hosting environment
Reply #15 - Mar 7th, 2014 at 6:14am
Print Post  
We only installed the Azure SDK and used the publish wizard to deploy the sample with all default settings. What should we change to make it run as "Azure Website"?

Have you followed exactly same steps from the work-around above for FontCachePath? First set SuppressUnmanagedCode to false through PdfGraphics, then FontCachePath through PdfGraphics again, and finally enable PdfExporter.SuppressUnmanagedCode? PdfGraphics class is in the MindFusion.Pdf namespace from MindFusion.Pdf.dll assembly. We'll be releasing a new version in a few days where the work-around should not be required. Also it should work without setting FontCachePath if the font-records file is in the same folder as the MindFusion.Pdf.dll file (e.g. the bin folder of your website).
  
Back to top
 
IP Logged
 
marshall
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jan 30th, 2014
Re: Export to PDF not working in Windows Azure hosting environment
Reply #16 - Mar 10th, 2014 at 11:24pm
Print Post  
An Azure "web site" is MS's most basic (and cheapest) ASP.net execution model that runs on a shared server (hence the security restriction).  I did follow your work around exactly and still got the "file not found" exception.  I will look forward to the new code release, hoping that may solve this problem.   

As a test I took one of your sample projects (flowcharter) and added just the PDF export to see if it would fail in the same way.  It did.   I can zip it up and send it to you if you like.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export to PDF not working in Windows Azure hosting environment
Reply #17 - Mar 19th, 2014 at 9:36am
Print Post  
Try the version from https://mindfusion.eu/_beta/netdiag505.zip, it should no longer need the PdfGraphics work-around.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export to PDF not working in Windows Azure hosting environment
Reply #18 - Mar 27th, 2014 at 11:14am
Print Post  
We have also managed to publish it as a web site here, export seems to work fine:
http://mindfusion.azurewebsites.net/

You can find the modified tutorial project here:
https://mindfusion.eu/_samples/azure.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint