i have this issue:
1) I've downloaded Magick.NET-Q16-AnyCPU throught NUGET in VS2010. 2) I've created this function for read remote svg and convert it into itextSharp.text.Image object as below:
iTextSharp.text.Image headeImage = null;
using (MagickImage image= new MagickImage(linksvgremote))
{
Percentage percent = new Percentage(55);
image.Resize(percent);
headeImage = iTextSharp.text.Image.GetInstance(image.ToByteArray(MagickFormat.Png));
}
Javascript function is:
ApriDialogCaricamento();
var datiInput = {};
datiInput.idTipo = idtipo;
datiInput.clearEngine = clearengine;
datiInput.nomeFileSvg = numfile;
var jsonData = JSON.stringify(datiInput);
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
ChiudiDialogCaricamento();
var url = window.URL || window.webkitURL;
window.open(url.createObjectURL(this.response));
}
}
xhr.open('POST', 'handlers/generaDatiTecniciPDF.ashx');
xhr.responseType = 'blob';
xhr.setRequestHeader('Content-Type', 'application/pdf');
xhr.send(jsonData);
It's work fine local but when i have uploaded on iis server the javascript function return this string:
failed to load resource the server responded with a status of 500 (internal server error)
It's would say that the problem is in function descripted above.... i know it because if i comment it it works but not generate the svg-converted-image .
How can i resolve it on my server?
Thanks
Mike