troubleshooting Question

Seagull Bartender Print dll error

Avatar of Andrew
AndrewFlag for United States of America asked on
Programming.NET ProgrammingASP.NETMicrosoft Development
11 Comments1 Solution1193 ViewsLast Modified:
Looking for some input on how to resolve this error.  Seagull support was no help.  Any suggestions appreciated!

I dropped their Seagull.Bartender.Print.dll in the bin folder of my asp.net vb.net website and get the following error.

Warning      2      Namespace or type specified in the Imports 'Seagull.BarTender.Print' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.      \\web1\c$\inetpub\CassavaTracker2\Seeds_SeedPlanting.aspx.vb      4      9      CassavaTracker2(1)


Could not load file or assembly 'Seagull.BarTender.Print' or one of its dependencies. An attempt was made to load a program with an incorrect format.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 Exception Details: System.BadImageFormatException: Could not load file or assembly 'Seagull.BarTender.Print' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error:

 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Seagull.BarTender.Print' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Seagull.BarTender.Print
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Seagull.BarTender.Print | Domain ID: 3
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 http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file://web1/c$/inetpub/CassavaTracker2/
LOG: Initial PrivatePath = \\web1\c$\inetpub\CassavaTracker2\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: \\web1\c$\inetpub\CassavaTracker2\web.config
LOG: Using host configuration file: C:\Users\ahelbling\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\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:/Users/ahelbling/AppData/Local/Temp/Temporary ASP.NET Files/vs/7561af33/55aa0dcc/Seagull.BarTender.Print.DLL.
LOG: Attempting download of new URL file:///C:/Users/ahelbling/AppData/Local/Temp/Temporary ASP.NET Files/vs/7561af33/55aa0dcc/Seagull.BarTender.Print/Seagull.BarTender.Print.DLL.
LOG: Attempting download of new URL file://web1/c$/inetpub/CassavaTracker2/bin/Seagull.BarTender.Print.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
 
Stack Trace:

[BadImageFormatException: Could not load file or assembly 'Seagull.BarTender.Print' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   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.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +36
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +21
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +104

[ConfigurationErrorsException: Could not load file or assembly 'Seagull.BarTender.Print' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +1029
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +360
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +103
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +62
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +265
   System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +77
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +173
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +236
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1205

[HttpException (0x80004005): Could not load file or assembly 'Seagull.BarTender.Print' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +752
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +150
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +245
ASKER CERTIFIED SOLUTION
Flabio Gates

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros