Problem with ASP.MVC PDF Export on Azure - but not locally

I’m using the ASP NET PDF export successfully on a local solution - however when I deploy it to an Azure web app the Export file is empty - it doesn’t seem to capture the XML. Any idea why this is? The same code works perfectly on my development machine… using the code below:

[code]

View:
<input type=“button” value=“ToPdf” onclick="@Model.ToPDF(Url.Action(“Export”, “Admin”), ExportColorScheme.FullColor)" />

Controller:
using DHTMLX.Export.PDF;

public ActionResult Export()
{
var generator = new SchedulerPDFWriter();
var xml = this.Server.UrlDecode(this.Request.Form[“mycoolxmlbody”]);
MemoryStream pdf = generator.Generate(xml);
return File(pdf.ToArray(), generator.ContentType);
}[/code]

Actually I hard-coded some XML to pass to this code below - again it works locally but not on Azure. There are no missing DLLs or Script files as far as I am aware.

MemoryStream pdf = generator.Generate(xml); return File(pdf.ToArray(), generator.ContentType);

Hi,
have you tried enabling error log, i.e. what is described here?
azure.microsoft.com/en-us/docum … ostic-log/
azure.microsoft.com/en-us/docum … al-studio/
If so, what does it show?

OK - I’ve done some research - could this be a security issue with Azure not generating PDFs?

If so, is there a work-around?

By the way, latest version of the Sheduler supports the online export. Such kind of export does not require any server side code at all, and must work for any plantform.

docs.dhtmlx.com/scheduler/pdf.html

Thanks, but I need to be able to get it in a memory stream or save to a file… because the PDF has to be emailed… is this possible?

Online service can return url of file, which can be downloaded and processed in a necessary way.

scheduler.exportToPDF({ name:"calendar.pdf", callback:function(url){ //do something with file url } });