Try using Fuslogvw.exe (Assembly Binding Log Viewer) to get more information about what cannot be found and where the runtime is searching.
Error loading file or assembly 'Interop.AcroPDFLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the specified file
Usuario Datawake
0
Reputation points
Error Message:
Could not load file or assembly 'Interop.AcroPDFLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Stack Trace (Excerpt):
AxAcroPDFLib.AxAcroPDF.AttachInterfaces()
System.Windows.Forms.AxHost.GetOcxCreate()
System.Windows.Forms.AxHost.set_Site(ISite value)
System.ComponentModel.Container.Add(IComponent component, String name)
System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
...
Microsoft.VisualStudio.NativeMethods.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
Microsoft.VisualStudio.Shell.Design.Serialization.DesignerDocDataService.GetFileDocData(String fileName, FileAccess access, String createTemplate, Boolean addToHostList, Boolean nestedItem)
...
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
Additional Context: This issue originally did not occur in the production environment. However, after downloading the project locally and implementing new features, the error started appearing. The problem arises when attempting to load or use the Adobe Acrobat ActiveX control (AxAcroPDFLib
) in a .NET Windows Forms application. The system is unable to locate or resolve the Interop.AcroPDFLib
dependency, which prevents the component from being instantiated correctly.