Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Edited Unassigned: MagickImage function not executed on server... [1396]

$
0
0
Hi,
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);

$.ajax({
type: "POST",
url: "handlers/generaDatiTecniciPDF.ashx",
data: jsonData,
contentType: "application/json; charset=utf-8",
dataType: "blob",
success: function (data) {
ChiudiDialogCaricamento();
var url = window.URL || window.webkitURL;
window.open(url.createObjectURL(data));
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
ChiudiDialogCaricamento();
alert("Ci sono stati problemi durante la ricezione dei dati");
}
});
```

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

Cristian

Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>