Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed May 07, 2014 9:16 pm

I'm having trouble getting a site to run using Spire.Pdf. I keep getting assembly binding errors at runtime. Any idea what I might be missing? The license file is included in the build and is in the bin. I've attached an rtf and copied the text below.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = Spire.Pdf
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Spire.Pdf | Domain ID: 4
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Octopus/Applications/build/UPI.LEM.Web2/0.8.1.81/
LOG: Initial PrivatePath = C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/fe5c5a16/87ab97bd/Spire.Pdf.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/fe5c5a16/87ab97bd/Spire.Pdf/Spire.Pdf.DLL.
LOG: Attempting download of new URL file:///C:/Octopus/Applications/build/UPI.LEM.Web2/0.8.1.81/bin/Spire.Pdf.DLL.
LOG: Using application configuration file: C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Spire.Pdf, Version=2.9.3.5040, Culture=neutral, PublicKeyToken=663f351905198cb3
ERR: Failed to complete setup of assembly (hr = 0x80131045). Probing terminated.



Stack Trace:



[FileLoadException: Could not load file or assembly 'Spire.Pdf' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]

[FileLoadException: Could not load file or assembly 'Spire.Pdf, Version=2.9.3.5040, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17
System.Reflection.Assembly.Load(String assemblyString) +35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122

[ConfigurationErrorsException: Could not load file or assembly 'Spire.Pdf, Version=2.9.3.5040, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +12480704
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +499
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +131
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +331
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +148
System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151

[HttpException (0x80004005): Could not load file or assembly 'Spire.Pdf, Version=2.9.3.5040, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12601936
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12441597





Fusion Log


*** Assembly Binder Log Entry (5/7/2014 @ 4:08:15 PM) ***

The operation failed.
Bind result: hr = 0x80131045. No description available.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = Spire.Pdf
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Spire.Pdf | Domain ID: 4
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Octopus/Applications/build/UPI.LEM.Web2/0.8.1.81/
LOG: Initial PrivatePath = C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fe5c5a16
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fe5c5a16
LOG: AppName = 87ab97bd
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/fe5c5a16/87ab97bd/Spire.Pdf.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/fe5c5a16/87ab97bd/Spire.Pdf/Spire.Pdf.DLL.
LOG: Attempting download of new URL file:///C:/Octopus/Applications/build/UPI.LEM.Web2/0.8.1.81/bin/Spire.Pdf.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\bin\Spire.Pdf.dll
LOG: Entering download cache setup phase.
LOG: Assembly Name is: Spire.Pdf, Version=2.9.3.5040, Culture=neutral, PublicKeyToken=663f351905198cb3
LOG: A partially-specified assembly bind succeeded from the application directory. Need to re-apply policy.
LOG: Using application configuration file: C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Spire.Pdf, Version=2.9.3.5040, Culture=neutral, PublicKeyToken=663f351905198cb3
LOG: GAC Lookup was unsuccessful.
ERR: Setup failed with hr = 0x80131045.
ERR: Failed to complete setup of assembly (hr = 0x80131045). Probing terminated.


*** Assembly Binder Log Entry (5/7/2014 @ 4:08:15 PM) ***

The operation failed.
Bind result: hr = 0x80131045. No description available.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = Spire.Pdf
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Spire.Pdf | Domain ID: 4
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Octopus/Applications/build/UPI.LEM.Web2/0.8.1.81/
LOG: Initial PrivatePath = C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fe5c5a16
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fe5c5a16
LOG: AppName = 87ab97bd
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/fe5c5a16/87ab97bd/Spire.Pdf.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/fe5c5a16/87ab97bd/Spire.Pdf/Spire.Pdf.DLL.
LOG: Attempting download of new URL file:///C:/Octopus/Applications/build/UPI.LEM.Web2/0.8.1.81/bin/Spire.Pdf.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\bin\Spire.Pdf.dll
LOG: Entering download cache setup phase.
LOG: Assembly Name is: Spire.Pdf, Version=2.9.3.5040, Culture=neutral, PublicKeyToken=663f351905198cb3
LOG: A partially-specified assembly bind succeeded from the application directory. Need to re-apply policy.
LOG: Using application configuration file: C:\Octopus\Applications\build\UPI.LEM.Web2\0.8.1.81\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Spire.Pdf, Version=2.9.3.5040, Culture=neutral, PublicKeyToken=663f351905198cb3
LOG: GAC Lookup was unsuccessful.
ERR: Setup failed with hr = 0x80131045.
ERR: Failed to complete setup of assembly (hr = 0x80131045). Probing terminated.

asanborn
 
Posts: 1
Joined: Wed May 07, 2014 8:58 pm

Thu May 08, 2014 7:19 am

Hello,

Thanks for your feedback.
Please confirm if there is the Spire.Pdf.Dll in the bin folder of the application after deployed.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon May 12, 2014 8:49 am

Hello,

Has the issue been resolved? Could you please give us some feedback if convenience?

If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Feb 23, 2016 8:18 pm

I'm having a similar issue here, is any solution for this have been found ?
Robin Leblond
.Net Consultant, Montréal, Qc, Canada

robinleblond
 
Posts: 22
Joined: Fri Jan 29, 2016 5:46 pm

Wed Feb 24, 2016 2:54 am

Hi,

Thanks for your posting.
I checked that you purchased the license for Spire.Doc Pro Edition. Please ensure you are using correct version of Spire.Doc.
Please confirm if you add the correct reference of Spire.Pdf.dll ,Spire.Doc.dll and Spire.license.dll which are correspond to the target framework of your project, and ensure Spire.doc.dll, Spire.pdf.dll and Spire.license.dll are placed in bin folder of your project.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Tue Mar 01, 2016 7:56 am

Hi robinleblond,

Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Wed Mar 09, 2016 7:33 pm

Yes! thanks, it was because the dll was bloked/locked because it has been downloaded... It was simple, but I had to find out...
Robin Leblond
.Net Consultant, Montréal, Qc, Canada

robinleblond
 
Posts: 22
Joined: Fri Jan 29, 2016 5:46 pm

Return to Spire.PDF