File or assembly name DynamicPDF, or one of its dependencies, was not found.

File or assembly name DynamicPDF, or one of its dependencies, was not found.

Forum member · Mar 16, 2011
I am getting the following exception when trying to access the COM/ActiveX 6.0 Generator product: "File or assembly name DynamicPDF, or one of its dependencies, was not found." Architecture details: Windows 2003 Server > IIS 6.0 > .NET 1.1 Web service > VB6 DLL (Interop) that utilizes generator calls (via DynamicPDF.Document) to produce new PDFs on the fly. When calling the VB6 DLL directly from an ASP page, all works well. Are their dependencies that may be missing when using the .NET web service? Thanks for any assistance. -dan

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Forum member · Mar 16, 2011
Follow-up: .Net 2.0 and 3.5 are also loaded on the test machines. Many thanks, dan

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Support · Mar 17, 2011
Hello Dan, Can you please uninstall the product and download the DynamicPDF for COM/ActiveX product MSI and then install the product in your system and see if it works for you? Also please try running the VBScript sample application downloaded with the product download and see if it works for you. If you continue getting the error then please send over full error message and more details to our support team at: [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^] so that they can look into it further. Thanks, ceTe Software Support Team.

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Forum member · Mar 17, 2011
I uninstalled then reinstalled using a new downloaded version of the COM/ActiveX 6.0 MSI - same problem exists. Additionally, the VBScript samples are running fine (both produce proper PDF files). We are using the product within a VB6 ActiveX DLL which is accessed by an ASP web application, and also utilized by a .NET 1.1 web service (using interop wrapper). In development, this architecture is working fine for both applications; however, when porting to an Amazon Windows 2003 AWS instance, it is failing with the previous error message given. Please let me know what other troubleshooting efforts I can employ. This is time critical. We are currently a .NET customer, but are hopeing to support this legacy application via DynamicPDF for COM/ActiveX and purchase the product soon (replacing activePDF). Thanks again for any assistance. Regards, daniel

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Support · Mar 17, 2011
Hello Daniel, Since the VBScript samples are working, which means the DynamicPDF COM component is registered correctly. Please send us the answers to the following questions to [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^] so we can better understand the situation. From your previous post the ASP page that is using the VB6 ActiveX dll is working fine and the issue is with the .NET 1.1 Web Service. Is this correct? Is the Amazon Win 2003 AWS server a 32-bit or 64-bit server? Is your development environment where everything worked a 32-bit environment? What is the version of .NET framework that is being used by the app pool for your web service? What is the version of .NET framework that is being used by the app pool for your ASP website? Do you get a numeric error code with the above error message? Is there any other information in the error message like stack trace, error codes etc. Would be really helpful if you can send more information regarding this error message. Thanks, ceTe Software Support Team.

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Forum member · Mar 17, 2011
Support: Answers to your questions below: From your previous post the ASP page that is using the VB6 ActiveX dll is working fine and the issue is with the .NET 1.1 Web Service. Is this correct? <<yes, this is correct. the .NET 1.1 web service references our VB6.DLL which utilizes the DynamicPDF.Document object. This architecture has been working fine for many years; however, it can not seem to see your object at the moment (as we replaced activePDF with DynamicPDF).>> Is the Amazon Win 2003 AWS server a 32-bit or 64-bit server? <<32-bit>> Is your development environment where everything worked a 32-bit environment? <<yes>> What is the version of .NET framework that is being used by the app pool for your web service? <<the application pool is .NET framework independent; however, it only contains .NET 1.1 web applications>> What is the version of .NET framework that is being used by the app pool for your ASP website? <<the application pool is .NET framework independent; however, it only contains .NET 1.1 web applications>> Do you get a numeric error code with the above error message? Is there any other information in the error message like stack trace, error codes etc. Would be really helpful if you can send more information regarding this error message. <<the error message (DyanmicPDF not found) is all that we have currently; it occurs when the VB6 DLL is called and "DynamicPDF.Document" is instantiated. we'll try to provide more information, but is difficult in a 'production' type environment.>> Thanks again for any help you can provide. Regards, daniel

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Support · Mar 17, 2011
Hello Daniel, The DynamicPDF Generator COM component does require .NET v2.0 or higher in order to work properly. It seems like you have .NET 2.0 installed and the DynamicPDF dll is properly registered as the VBScript samples and your ASP pages are working as expected. Please check the IIS setting on your web service and try running it under .NET 2.0. Also make sure that you have deployed the DynamicPDF.tlb and DPAsm.dll along with the DynamicPDF.dll. Please check the IIS settings on your development server for the web service and compare them with the setting on the test server to make sure you are not missing anything. It will help us look into this further if you can provide us with more information on the error. Please check the OS Event Log or the IIS log files to see if there is anything captured there. Thanks, ceTe Software Support Team.

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Forum member · Mar 21, 2011
Changing the .NET web service to run under .NET 2.0 (was 1.1) worked for us. Thank you for the assistance.

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Forum member · Mar 23, 2011
I had an identical problem but the solution was different and thought I'd share it here. The Windows 2003 server had .Net version 1 and version 4 installed. I was getting the same error message as the other poster even when I set IIS to use .Net v4. However I installed .Net v2 and suddenly it started working. So it does seem you need .Net v2 installed for the software to work - a later version can be installed but only in addition to v2.

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Forum member · Mar 26, 2011
We just moved our application to production, and we are now getting the following VB6 error: "-2147418113 Automation error, Catastrophic failure" This appears to happen when the vb6 DLL tries to instantiate a DynamicPDF instance. IIS has been restarted with no luck, and the entire server has been rebooted as well with no change in response. Please see the earlier thread posts for a description of the environment. Any assistance would be greatly appreciated. -dan

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Forum member · Mar 26, 2011
Actually, the architecture mentioned in the above threads is working fine (web service access). However, the web application is failing. It's architecture is as follows: Classic ASP pages --> vb6 DLL --> DynamicPDF COM/ActiveX 6.0 The ASP web site is running under .NET 1.1.4322 (same as our development server) in IIS; it was running under 2.0, but we changed it to match our dev/testing environments (to no avail). Any suggestions? Thanks much. -dan

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Forum member · Mar 26, 2011
Here is the response received from the ASP samples (VBScript samples work) Server object error 'ASP 0177 : 8000ffff' Server.CreateObject Failed /cete/calendar.asp, line 7 8000ffff I found a similar thread back in 2007 (IE7 issue), but the registry permissions issue did not resolve the problem. Any help greatly appreciated. Regards, dan

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Support · Mar 28, 2011
Hello Dan, Please make sure that you are running the ASP web site is running under .NET 2.0 in IIS and this will work for you. The version 6 DynamicPDF for COM/ActiveX component does require .NET v2.0 or higher in order to work properly. It seems like you have .NET 2.0 installed and the DynamicPDF dll is properly registered as the VBScript samples are working as expected. Thanks, ceTe Software Support Team.

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Forum member · Mar 28, 2011
The site was running under ASP.NET 2.0, but this still caused the error. I moved it back to 1.1 because our development environment was successfully working with this setting. It turned out to be the IE7/8 issue as follows (from 2008 - I had forgotten to give "read" access...): April 28, 2008, Thread URL: http://www.DynamicPDF.com/Forums/DisplayThread.csp?FD=15&TD=992 "I was just checking in on the status of this issue and see there is a hotfix available though it seems to be taking FOREVER for the KB article to be published. Anyhoo, one additional comment - I just had the exact same error occur in Windows Server 2008, IIS7. Same "workaround" as well with giving the IUSR (or whoever your site is running as) Read access to HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones After that workaround, all fixed... " Is there a permanent fix to this? I am concerned that a windows update may occur in which this setting will be reset. Please let me know. Thanks and regards, dan

Re: File or assembly name DynamicPDF, or one of its dependencies, was not found.

Support · Mar 28, 2011
Hello Dan, Microsoft has released a hot fix for this issue that is caused due a bug in COM interop functionality. We are not sure if the Microsoft has released a fix publicly or included it in a service pack but if you need the hot fix for KB945701 as mentioned in the other forum message, please email us at [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^] so we can send you the hot fix. Thanks, ceTe Software Support Team.