Issue With Deploying To Webservice Follow

0
Avatar
Legacy Poster

I am currently evaluating the SDK to print labels from our LIMs webserver and have run into an issue once I deploy to our webserver. The error I get is

Could not load file or assembly 'Interop.BarTender, Version=9.40.2.1, Culture=neutral, PublicKeyToken=109ff779a1b4cbc7' or one of its dependencies. The system cannot find the file specified.

During development I was able to print fine from my local box where I have bartender installed. I see this is registered in my own registry, but was never installed on the IIS server box. Do I need to install bartender on my webserver box to make this work? Or is there just a dll I need to reference? I tried to reference all the assemblies in the SDK, but the BarTenderPrintClient will not register on any computer that does not have bartender installed, I am assuming I need to reference an Interop, but I am not sure which one.

2 comments

0
Avatar
Ian Cummings
Moderator

The main BarTender application will need to be installed (fully) on to your web server. The bartend.exe which is the main BarTender executable, is in the end, the process that produces the print jobs be they manually produced or generated via automation..
0
Avatar
Legacy Poster

Hi!
I am also getting such error in my example project. I am using BarTender print methods on my WebService and it returns me error: System.TypeInitializationException: The type initializer for 'KC.ItemSticker.Service.Helpers.BarTenderHelper' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Seagull.BarTender.Print, Version=9.40.3.1, Culture=neutral, PublicKeyToken=109ff779a1b4cbc7' or one of its dependencies. The system cannot find the file specified.
File name: 'Seagull.BarTender.Print, Version=9.40.3.1, Culture=neutral, PublicKeyToken=109ff779a1b4cbc7'
at KC.ItemSticker.Service.Helpers.BarTenderHelper..cctor()
Can you describe how to use BarTender SDK on webservice?
Thank you.

Please sign in to leave a comment.