We help IT Professionals succeed at work.

Seagull Bartender Print dll error

998 Views
Last Modified: 2017-11-27
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
Comment
Watch Question

Chinmay PatelChief Technology Ninja
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Is this a third party web server? or you have access to it? i.e. Can you open the folder in Windows Explorer?

Author

Commented:
No, it is on our company web server & I have full access.
Perhaps a conflict with 32-bit DLL on a 64-bit application? or vice versa?

Author

Commented:
I have no clue at this point...

gac.PNG
buildFailed.PNG

Author

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

https://www.seagullscientific.com/downloads/label-software/barcode-label-printing-software-download/
Some ideas here and here.

Author

Commented:
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.
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
CorFlags.exe

Author

Commented:
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?

Capture.PNG
Question inactive

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.