Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1444 posts 1855 karma points
    Feb 11, 2012 @ 20:17
    Gordon Saxby
    0

    Getting Licence error on live site after upgrade to v2

    I have upgraded to v2 of PDF Creator and all works fine locally. I uploaded everythin to the live site and checked that the old version of PDF Creator was removed but I get an error when creating a PDF that says the licence is invalid.

    I get this in the .pdf file:

    <html>
                    <head>
                                    <title>
                                                    You can only work with a trial license on localhost and .local domains.
                                    </title>
                                    <style type="text/css">
                                                    h1 { font-size: 15t; }
                                                    body { background: #cccccc; font-family: helvetica, arial; }
                                    </style>
     
        </head>
                    <body>
                                    <h1>You can only work with a trial license on localhost and .local domains.</h1>
                                    <p>
                                                    PDF Creator for Umbraco is a commercial project. Please email <a href="mailto:[email protected]">[email protected]</a> for more details.
                                                    Or purchase a license from <a href="http://our.umbraco.org">our.umbraco.org</a>.
                                    </p>
                    </body>
    </html>

    I checked that the licence was correct by downloading it from my account on our.umbraco.org.

    HELP!!!

     

  • Gordon Saxby 1444 posts 1855 karma points
    Feb 12, 2012 @ 12:05
    Gordon Saxby
    0

    The PDF creation works fine locally. To update the live site I installed PDF Creator on the live server, removed files as suggested in the documentation and then copied all changed files from dev to live. I am currently getting this error:

    Server Error in '/' Application.


    Root element is missing.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Xml.XmlException: Root element is missing.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [XmlException: Root element is missing.]
       ibex4.xml.IntermediateFormatCreator.readXMLIntoIntermediateForm(RenderingContext rc) +363
       ibex4.logical.FODocument_Implementation.commonCreationAndClose(RenderingContext rc, IntermediateFormatCreator intermediate_format_creator, Boolean close_output_stream, Stream output_stream, String xsl_swap_file_name, Stream fo_stream) +59
       ibex4.logical.FODocument_Implementation.generateStreams(Stream xml_stream, Stream xsl_stream, Stream output_stream, Boolean closeOutputStream, Hashtable xsltParams) +1374
       ibex4.logical.FODocument_Implementation.generateStreams(Stream template, Stream output, Boolean closeOutputStream) +99
       FergusonMoriyama.Pdf.Application.Filter.FoFilter.Flush() +96
       FergusonMoriyama.Pdf.Application.Filter.FoFilter.Close() +19
       System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +195
       System.Web.HttpResponse.FilterOutput() +159
       System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +52
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272              

     

     I have also compared all files on Dev and Live (using Beyond Compare) and as far as I can see they match. The only other possible difference is the Macros (etc?) in the CMS.

     

  • Gordon Saxby 1444 posts 1855 karma points
    Feb 12, 2012 @ 12:33
    Gordon Saxby
    0

    OK - found the problem!!

    The macros for each PDF were not created properly - I deleted and re-added them in Umbraco on the live site and it worked again! :-)

     

Please Sign in or register to post replies

Write your reply to:

Draft