Print Page | Close Window

QuickPDF on hosted web site - unlock fails

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2240
Printed Date: 13 Aug 25 at 5:24PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: QuickPDF on hosted web site - unlock fails
Posted By: kit
Subject: QuickPDF on hosted web site - unlock fails
Date Posted: 21 Apr 12 at 6:02PM
Hiya,

I've written a web site which uses QuickPDF 8-14.  It's written in F# and C# and works fine running through Visual Studio 2010 on my local machine.

However when I deploy it to a hosted site (aspnethosting.co.uk), unlocking appears to fail - ie. lib.Unlocked returns 0.  I've checked that the necessary DLLs are in place and can be found; and the hosting provider states that they have no limitations on loading/executing DLLs.

I'm currently on a trial licence.

So my question is - anyone else had this problem?  Anyone got any suggesting for narrowing down the cause?

Here's the relevant code.  It's the final check which fails.

type PdfReader() =
    let dllPath = Path.Combine(assemblyDirectory, "QuickPDFDLL0814.dll")
    let lib = QuickPDFDLL0814.PDFLibrary(dllPath)
    do
        if not (File.Exists(dllPath)) then
            failwith ("Could not find QuickPDF DLL at: " + dllPath)
        lib.UnlockKey("--- my trial code ---") |> ignore
        if lib.Unlocked() = 0 then
            failwith "Unlocking of QuickPDF library failed"

Many thanks
Kit



Replies:
Posted By: AndrewC
Date Posted: 04 May 12 at 1:09PM
From my experience in QPL support - problems on ASP.NET are always permissions related somehow.

Andrew.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk