Could not load file or assembly 'Seagull.Framework, Version=11.1.6.1
Hi,
I have created a .NET program to send print requests to Label printer.
I am using .NET 4.7.2 version with "Seagull.BarTender.Print.dll" File version 11.1.147.532.
When I try to run I am getting the following exception.
System.IO.FileNotFoundException: Could not load file or assembly 'Seagull.Framework, Version=11.1.6.1, Culture=neutral, PublicKeyToken=109ff779a1b4cbc7' or one of its dependencies. The system cannot find the file specified.
File name: 'Seagull.Framework, Version=11.1.6.1, Culture=neutral, PublicKeyToken=109ff779a1b4cbc7'
at Seagull.BarTender.Print.Engine..ctor()
at Seagull.BarTender.Print.Engine..ctor(Boolean startEngine)
Is this dll version is compatible with .NET 4.7.2?
Any help will be appreciated.
-
Kern Carboni
★ BarTender Hero ★
Hi Pardha;
Not sure if this is still relevant for you;
I had the same issue - found the .dll on the bartender server directory.
C:\Program Files\Seagull\BarTender 2019 - make sure the dll versions match with Seagull.BarTender.Print.dll
Copied and pasted to suitable folder in my dev environment then referenced the dll in the project
Kern
0 -
Rob Cron
★ BarTender Hero ★
Kern... My name is Rob Cron and we are experiencing a similar issue in that Visual Studio is throwing an error trying to compile/build the SDK sample LabelPrint project.
VS says that the version referenced of Seagull.BarTender.Print.dll is 11.2.2.1 but the version that is in our 2021 SDK Sample directory is version 11.2.161.872. So then when we try to run we get : FileNotFoundException was unhandled and it tells us we cannot load the file or assembly 'Seagull.BarTender.Print version=11.2.2.1 etc...
The problem is there is not a single version of this file that we can find that is higher than version 11.2.161.872.
The Reference says it should be found at C:\WINDOWS\Microsoft.Net\assembly\GAC_64\Seagull.BarTender.Print\v4.0_11.2.2.1__109ff779a1b4cbc7\Seagull.BarTenderPrint.dll (We get this reference if the Bartender software has been installed on the machine we are running Visual Studio on.
That file DOES exist there and it is the exact same version of 11.2.161.872. Any thoughts...?
0 -
Al Perez
★ BarTender Hero ★
Hi Ken, thanks for your post. Can you verify the version of BarTender you have installed? If you go to BarTender Designer app and then go to Help>About, you should be able to find this information:
In the screenshot provided above, this version gives Users access to the SDK assemblies, typically located in C:\Program Files\Seagull\BarTender 2021\SDK\Assemblies. As far as the Seagull.BarTender.Print.dll file version goes, the R3 version of this DLL should be 11.2.163.367. Could you also send us a screenshot of the error message from VS Studio?
You could try upgrading to the latest version of BarTender 2021 here. Make sure you save and close all of your projects and BarTender apps first. Thanks!
0 -
Rob Cron
★ BarTender Hero ★
Al... This is Rob Cron... I had asked a question of Kern, because he seemed to have a thought on the issue the original poster had. I am not trying to take over this post, but I appreciate the response... Below is my version of BarTender installed Please see screen shot...
The version of the DLL that comes in the R2 version of 2021 in the SDK Assemblies directory you mention above.. is version 11.2.161.872. But in Visual Studio... the version that is called out in the REFERENCE is 11.2.2 and this fails. Notice that the directory tied the the reference name ( see below ) is calling out the location of the DLL after Bartender Installation. If Bartender is not installed on the machine that Visual Studio is running from... this version comes from the directory that you load the project from. The Resulting Error in Visual Studio is shown below the "reference" image.
Thanks for any help you can provide...
0 -
Bjorn Comhaire
★ BarTender Hero ★
Hi,
Just to let you know that I'm having the exact same issue here. Any help would be appreciated as this is a definite showstopper.
Thanks!
Björn
0 -
Rob Cron
★ BarTender Hero ★
Bjorn... I wanted to update you... on my progress. I downloaded the NEWEST version of 2021, which is R3. Originally posted about R2. 2021 R3 just came out on Jan 27th. I happened to download the 32bit version and re-installed on my machine...and then it worked... so clearly, BarTender had a bad reference in their sample code.
I am going to download the 64Bit version today, re-install and have my developer test again ( I got the 32 bit version by accident) just to be sure that 64Bit version also works. So you might try that.
I'll post back my experience with 64Bit.
Rob
0 -
Al Perez
★ BarTender Hero ★
Bjorn and Rob, I can also confirm that there are no issues with the R3 version of BarTender 2021 (I ran the LabelPrint project as well). The screenshot is just for reference (the dll file is version 11.2.3.1):
If the issues continue, please let us know, I'd be more than happy to open up a support case for you.
0 -
Kern Carboni
★ BarTender Hero ★
Hi Rob;
Apologies for delay in responding;
Currently using BT2019 so can't comment on 2021 implementation but I presume it's pretty similar.My projects are structured as follows to avoid any dll hell
A Solutions folder created within the VS2019 solution named Binaries - this contains all 3rd party binaries which are then referenced from the projects requiring the dll's. The dll's become part of the project and distributed accordingly.
Regards
Kern0 -
Rob Cron
★ BarTender Hero ★
Okay but hold on a second. I have confirmed that ONLY the 32Bit version of 2021 R3 will work. My Developer tried with the 64bit version installed and it did NOT work... we had the same error as with 2021 R2 64bit and 2019 64bit.
So there is a problem with the SDK with the 64Bit version. We are going to leave this at 32Bit for now as the application that my developer needs to use is quite old and will probably require the 32bit version anyway.... but it should have worked trying the LabelPrint project 64Bit.
0 -
Bjorn Comhaire
★ BarTender Hero ★
Hi Al, Rob,
I was also using R2. I have now updated to R3-64bit and am still seeing the same issue.
In VS2019 the version of the dll is shown as 11.2.3.1. When I select the dll in Windows Explorer and check the properties it shows the same version as Bartender Designer.
When I run a very basis vb.net program that just does one thing:
Imports Seagull.BarTender.Print
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Using engine As New Engine(True)
engine.Stop()
End Using
End Sub
This results in the following error
The Dutch text can be translated to: "The system couldn't find the file"
I then downloaded and installed the 32-bit version of Bartender 2021 to see if that works but I get the exact same error.
EDIT:
On a positive note I uninstalled 2021 and installed 2016 (32bit). Now my software is working on the development PC. My question: will a .NET project built with 2016SDK also work with a 2021 edition on client computer or must the most recent SDK be used?
The test project with the very basic functionality (see above) is still throwing the same error. So it must be some setting in the compiler that is causing this, I was not able to discover which one though.
Björn
0 -
Rob Cron
★ BarTender Hero ★
Al, Please DO open a ticket for this as we have proven that 2021 R3 ONLY works if you have the 32bit version installed. We cannot make it work in Visual Studio with the 64Bit version installed. We get the same error as above. We are going to proceed to re-develop our existing application using the 32bit version as we must get this finished to be able to upgrade from Bartender 9.1 but we may have other code that we would like to be able to run the 64Bit version.
0 -
Norbert Hauser
★ BarTender Hero ★
Hi,
is there a solution? I have same problem with the newest Seagull.Bartender.Print dll. Wrong format. It is 64bit but, why cant add this to VS?
it is version 11.3.8.1. And I copied it to a folder where I use my program.
0
Please sign in to leave a comment.
Comments
12 comments