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:
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);
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.