I can't seem to figure out this error message while upgrading to the newest version of ABCPDF, 10.0.1.0. Does the error message give any clues? It happens in spurts and restarting the app pool is the only way to fix it right away.
WebSupergoo.ABCpdf10.Internal.PDFException: Failed to add HTML: Gecko engine failed to initialize. Possible causes: XULRunner folder not found or failure to create temporary browser profile directory.
at WebSupergoo.ABCpdf9.Doc.AddUrlHtml(String urlOrHtml, Boolean isHtml, Boolean paged, Int32 width, Boolean disableCache)
at WebSupergoo.ABCpdf9.Doc.AddImageUrl(String url, Boolean paged, Int32 width, Boolean disableCache)
at WebSupergoo.ABCpdf9.Doc.AddImageUrl(String url)
My process log shows this type of entry.
"1:46:21.9863465 PM","ABCGeckoWP.exe","4052","CreateFile","C:\Windows\Temp\ABCpdf\ABCGecko\wq3tvwof.2uc","NAME NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"
"1:46:21.9865561 PM","ABCGeckoWP.exe","4052","CreateFile","C:\Windows\Temp\ABCpdf\ABCGecko\wq3tvwof.2uc","NAME NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"
Seems that the fix tempPdf.HtmlOptions.EndTasks(WebSupergoo.ABCpdf10.TaskState.AllWhenBecomeIdle);
isn't really a fix and even causes some performance hit. I went ahead and removed the try/catch with it and reverted back to an older version of ABC PDF until this is resolved. This version probably shouldn't have been released and they knew about this issue also before the release of it.