Even if I use TidyManaged.Document in a using block, the handle to libtidy.dll is not released.
I am using this on an Azure website and when I try to publish the site, I get an error that the file libtidy.dll is locked by an external process.
Here is a code snippet of our usage
using (Document doc = Document.FromString(body))
{
doc.ShowWarnings = false;
doc.Quiet = true;
doc.OutputXhtml = true;
doc.IndentBlockElements = AutoBool.Yes;
doc.IndentAttributes = false;
doc.IndentCdata = true;
doc.AddVerticalSpace = false;
doc.WrapAt = 120;
doc.DocType = DocTypeMode.Omit;
doc.OutputBodyOnly = AutoBool.Yes;
doc.PreserveEntities = true;
doc.CleanAndRepair();
model.Body = doc.Save();
model.Status = "Success";
return Json(model);
}
Even if I use TidyManaged.Document in a using block, the handle to libtidy.dll is not released.
I am using this on an Azure website and when I try to publish the site, I get an error that the file libtidy.dll is locked by an external process.
Here is a code snippet of our usage
using (Document doc = Document.FromString(body))
{
doc.ShowWarnings = false;
doc.Quiet = true;
doc.OutputXhtml = true;
doc.IndentBlockElements = AutoBool.Yes;
doc.IndentAttributes = false;
doc.IndentCdata = true;
doc.AddVerticalSpace = false;
doc.WrapAt = 120;
doc.DocType = DocTypeMode.Omit;
doc.OutputBodyOnly = AutoBool.Yes;
doc.PreserveEntities = true;
doc.CleanAndRepair();
model.Body = doc.Save();
model.Status = "Success";
return Json(model);
}