c# html to Pdf Converter(Nreco)
<p>i am using NReco html to pdf converter for my project.
It is giving me error for 3 days on server machine,it was working for months without any problem.Worse thing is , the project is working well on my local pc with same codes.I guess, the problem is related with some folder autorization or temp files which is already created on server pc.I have also deleted temp files under /user and windows/temp folders but still getting error:</p>

<p>the simple error message is : <strong>"The file exists"</strong></p>

<p>Code:</p>

<pre><code>   public static byte[] ToPDF(this HttpContext context, string htmlContent )
    {
        string logFile = context.Request.PhysicalApplicationPath + "\\" +  "log.txt";
        try
        {
            var converter = new HtmlToPdfConverter();
            converter.Margins = new PageMargins { Bottom = 20, Top = 18 };
            var pdfBytes = converter.GeneratePdf(htmlContent); //THROW EXCEPTION ON THIS LINE
            errorMsg = "Error Code:00x1";
            return null;

        }
        catch (Exception exp)
        {
            errorMsg = "Error Code:00x2";
            CreateErrorLog(context ,exp);
            return null;
        }

    }
</code></pre>