Aricie
Intégrateur de vos solutions d'avenir
DNN Community Forums

Problems with filenames

Sort:
You are not authorized to post a reply.
Author
Messages


robax











New Member



Posts:




New Member



    Hello again,

    I'm successfully importing several test PDF files now, but the two files that I absolutely must import for the live site will not work. I'm wondering if there is something about the files that matters. I will email them to you and refer to this forum thread.

    The process stops with 'an error occured' curing the "Creation of the temporary files" bit. I can see that the folder for the images has been created, but it contains no images, and not even the temporary files that I can normally see briefly during the conversion.

    In the Windows Application event log, I can see the error pasted here.

    An unhandled exception occurred and the process was terminated.

    Application ID: /LM/W3SVC/14/ROOT

    Process ID: 6992

    Exception: System.ArgumentException

    Message: The directory name C:\inetpub\wwwroot\xxxxxxxxtest\Portals\6\Aricie.PageFlip\latamnewsmay1\ is invalid.

    StackTrace:    at System.IO.FileSystemWatcher..ctor(String path, String filter)
       at System.IO.FileSystemWatcher..ctor(String path)
       at PDFToPPM..ctor(String pdfFile, String outputFileBaseName, String pdftoppmPATH)
       at GenePdf.GeneratePdf(String PathPdfSource, String PathDest, String PathDestMM, String PathExeMM, Int32 portalId, PortalSettings portalSettings)
       at ThreadParams.ExtractAndMakeIt()
       at ThreadParams.ExecuteThread()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

     

    .... ok hang a second, I've just figured out what's going on and I won't need to send the PDF files through.

    The failure occurs when the PDF filename ends with a zero. My files are news PDFs, currently ending in the year '2010' or just '10'. I noticed that the pathname in the error is missing the zero at the end so I tested again and it works fine without the zero.

    That will need fixing, but I'm pleased that it's nothing too serious.

    While I'm here... something else I noticed is that when I uploaded and converted a single page 2Mb PDF of a medium-sized poster, it was taking a very long time, so I checked the server and found it had overrun the 4Gb memory and restarted the app pool for the website and the database more than once. I checked the book images folder and there was a single 800Mb temporary file in there. That then vanished and was replaced by the two pageflip images, totalling a tiny 300kb.  Is it necessary that it create such large temporary files? Is there any kind of guideline as to what causes huge files... I note that the 18 page news file, also in colour, didn't make such large temp files.

    Regards,
    Rob

    You are not authorized to post a reply.