Avatar of Andrew
AndrewFlag for United States of America

asked on 

Seagull Bartender Print dll error

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
ASP.NET.NET ProgrammingProgrammingMicrosoft Development

Avatar of undefined
Last Comment
Flabio Gates
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Is this a third party web server? or you have access to it? i.e. Can you open the folder in Windows Explorer?
Avatar of Andrew
Andrew
Flag of United States of America image

ASKER

No, it is on our company web server & I have full access.
Avatar of Flabio Gates
Flabio Gates

Perhaps a conflict with 32-bit DLL on a 64-bit application? or vice versa?
Avatar of Andrew
Andrew
Flag of United States of America image

ASKER

I have no clue at this point...

User generated image
User generated image
Avatar of Andrew
Andrew
Flag of United States of America image

ASKER

I have installed the x64 version on a Windows Server 2008R2 box.

https://www.seagullscientific.com/downloads/label-software/barcode-label-printing-software-download/
Avatar of Flabio Gates
Flabio Gates

Some ideas here and here.
Avatar of Andrew
Andrew
Flag of United States of America image

ASKER

Thanks for the ideas.  I’ve already been through those thread and had no luck.  I’m using their latest greatest 2016 x64 version on a x64 box.
ASKER CERTIFIED SOLUTION
Avatar of Flabio Gates
Flabio Gates

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Andrew
Andrew
Flag of United States of America image

ASKER

User generated image
Avatar of Andrew
Andrew
Flag of United States of America image

ASKER

I just reinstalled Bartender.  Interestingly, in the GAC_64 under Microsoft.NET/Assembly I have what is shown below.  Those versions do not match.  Is this the problem possibly?

User generated image
Avatar of Flabio Gates
Flabio Gates

Question inactive
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo