View Single Post
  #2 (permalink)  
Old 03-27-2008, 04:48 PM
risefei risefei is offline
D-Web Trainee
 
Join Date: Mar 2008
Posts: 5
risefei is on a distinguished road
Default Re: a error to run my project contain the MagickNet.dll (Windows server 2003 + ii6.0)

,the following code is very well with windows 2003 + iis 6 when I configs for iis 5.0,it just cen't run well on iis6.0. I am very confused,and can't get method to resolve the problem.
code:
//convert svg to png
public void StartConvertPng(string picPosition, string pngPath, string pngName)
{

MagickNet.Magick.Init();
MagickNet.Image img = new MagickNet.Image(picPosition);

string test = pngPath + pngName;


try { img.Write(test); }//debug here it displays System.StackOverflowExceprion{can't evalueate expression because the curren thread is a stack overflow}
catch (Exception e)
{
Console.WriteLine("The process failed: {0}", e.ToString());
}
MagickNet.Magick.Term();
}
Reply With Quote