I am using the pdf generator in a web-configurable dll component (a 'print task' dll), which is intended to be used when configuring a new web application through a manager-type of program. On my development system, I have a solution with two projects - one is a test web app, and the other is a print task that utilizes the pdf generation functionality. The functionality works fine on my development system, and, if I publish my test web app to another server, it works fine from there, too. I run into problems when I try to deploy just my print dll to another server and use it in a new web app. The other 'non-pdf' functionality within this print dll works as expected. However, when I choose to print a pdf, I get an error message: "The page cannot be found" and "HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)"
I have tried embedding the license file in my project as well as embedding it in code, and neither made a difference. I even tried adding it to the web.config file of the new web app being created. What step am I missing in deploying a dll with the pdf generator functionality?
Thanks for any help,
Kelley
dll deployment problem
Re: dll deployment problem
Support · May 1, 2008Hello Kelley,
The likely reason for the error is because you may have not set up the Virtual Directory for the application in IIS.
Following steps show how to set up Virtual Directory in IIS:
1. Open up IIS and navigate to this folder on the left side.
2. Right click on the folder and open the “Properties”.
3. On the “Directory” tab under the “Application Settings” click on the “Create” button, then click “Apply” and “OK”.
4. Then reload the page and try it again.
Thanks,
ceTe Software Support Team
Re: dll deployment problem
Forum member · May 1, 2008Thanks for the reply, however I still am having problems. To clarify, the pdf generation functionality is built into a dll. Based on the configuration steps for the server application I am using, I register the dll in the GAC, which makes it available for use with a separate web application (so, the dll itself is not a full web app - it is essentially a panel with functionality that can be added to a web app). The separate web app is set up correctly in IIS, and I can view it and use all the functionality, including other parts of my dll EXCEPT for the pdf printing. That is when I get the error. Are there other IIS settings that you can suggest that I should check?
Thanks again,
Kelley
Re: dll deployment problem
Support · May 1, 2008Hello Kelley,
The error is not because of the licensing or related to our product. There is no other IIS setting that we can think of. You may be missing some configuration setting or maybe the DLL file is not registered correctly or maybe the page you are trying to access is not at the right location.
The DynamicPDF DLL files need to be in the bin folder located in the application root. Thats the only requirement when deploying our DLL files.
Thanks,
ceTe Software Support Team
Re: dll deployment problem
Forum member · May 1, 2008Through trial and error I finally got it working. In case anyone else has a similar problem, I added cete.dynamicpdf.20.dll to the GAC on the target server and changed the Execute Permissions of my web app to Scripts and Executables.
Thanks for your prompt assistance.
Kelley