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.