I started an new ASP.NET Web Application in Visual Studio and copied all my code. Then all code was compiled. I guess the problem was that I used a Windows Console Application before.
So, now I can run my code but I get an error message saying:
"ALC-PDG-80014-000: com.adobe.livecycle.generatepdf.client.ConversionException: ALC-PDG-080-014-Html to pdf conversion failed because of an exception.\nERROR encountered loading http://www.adobe.com: java.net.ConnectException: Connection refused: connect\nCaused by: coldfusion.document.DocumentProcessor$RenderException: ERROR encountered loading http://www.adobe.com: java.net.ConnectException: Connection refused: connect\n\tat coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:282)\n\tat coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:177)\n\tat com.adobe.pdfg.html2pdf.Html2PdfConverter$URLConverter.run(Html2PdfConverter.java:445)\n\ tat...etc...
I used the default username (administrator) and password (password) when trying to connect. But as it says Conenction Refused, I guess the password has been changed after the installation of LiveCycle? (It wasn't me who installed it.)