Seagull.bartender.print.printengineexception When Ran From My Web Server Follow

Legacy Poster



Please, I am having an issue with the bartender((Bartender Automation License)) .Net SDK coding in C#.

I created the Code to print my Label. When I run the Code from My VS2013 application program, it prints the Label without any error.


But, once I publish the code on my webserver and ran it, it refuses to print any label instead it gives an error " A first chance exception of type 'Seagull.BarTender.Print.PrintEngineException' occurred in Seagull.BarTender.Print.dll ".


I have tried alot of things to fix this but to no avail. I have the Bartender software installed on all the computer servers am using for this product, Made sure my ApplicationWeb pool is on can run a 32bit service.


Please, I need someone with experience on how I can make my Bartender work from a publish webserver to give me a heads up.


I just cant understand why I could make it work on my VS2013 browser when I run it but wont work once I publish it to the actual webserver.


Bellow is my Code...


private void updateWhatAburgerDB(string uniqueID, string NetWeight, string Bags, string itemNo, string No_, string UseThru, string Mfg, int copies)
                SqlConnection con = new SqlConnection("Data Source=xxxxx;Initial Catalog=5555555;User ID=qqqqq; Password=ooooooo");
                SqlCommand cmd = new SqlCommand("UPDATE dbo.BartenderFields Set labe1=@labe1,labe2=@labe2,Label3=@Label3,label4=@label4,label5=@label5,label6=@label6 where UniqueID=@UniqueID", con);
                cmd.Parameters.AddWithValue("@labe1", "Net Wt. " + NetWeight + "Lb");
                cmd.Parameters.AddWithValue("@labe2", Bags);
                cmd.Parameters.AddWithValue("@Label3", itemNo);
                cmd.Parameters.AddWithValue("@label4", No_);
                cmd.Parameters.AddWithValue("@label5", "Use Thru: " + UseThru);
                cmd.Parameters.AddWithValue("@UniqueID", uniqueID);
                cmd.Parameters.AddWithValue("@label6", "Mfg: " + Mfg);
                    using (Engine btEngine = new Engine(true))
                        LabelFormatDocument labelFormat = btEngine.Documents.Open(@"C:\bartenderDoc\whataburger.btw");                   
                        labelFormat.Print("ShipLabs" + DateTime.Now, 15);


            catch (Exception e)

Please sign in to leave a comment.