跳至主內容

搜尋

搜尋

Com Error - 0X80080005 & Bartend.exe Doesn't Stop

評論

13 條評論

  • Avatar
    Domingo Rodriguez
    版主

    Do you own an Automation or actually an Enterprise Automation Edition of BarTender?

     

    Is this a client-server based web service, where the users will open an internet browser on the client side and then running the web application based on the server side?

     

    Is BarTender installed on a Windows Server 2012 server?

    0
  • Avatar
    Legacy Poster

    It's an Automation edition license. 

    It's a C# web service that we are making calls to, to print a label via Web References on a handheld scanner device, or from a webpage.

     

    It's Windows Server 2008 R2  

    0
  • Avatar
    Ian Cummings
    版主

    Modify the "web.config" file for your site in a text editor as I believe you can adjust the recycling of BarTender processes from there.  Going from memory here.

    0
  • Avatar
    Legacy Poster

    Modify the "web.config" file for your site in a text editor as I believe you can adjust the recycling of BarTender processes from there.  Going from memory here.

    Hi Ian, 

    Can you expand on what we would have to change in the web.config, and what the setting would do?

     

    Thanks!

    0
  • Avatar
    Ian Cummings
    版主

    Make sure something like the below entries are there:

     

       <!-- BarTender process restart type: Valid values are Interval and OnlyOnFailure -->
        <add key="RestartType" value="Interval" />
        <!-- BarTender process restart interval is in hours. Used only if RestartType is set to Interval. -->
        <add key="RestartInterval" value="1" />
     
    This will restart the persistent BarTender processes at an interval to help avoid issues.
    0
  • Avatar
    Ian Cummings
    版主

    Make sure something like the below entries are there:

     

       <!-- BarTender process restart type: Valid values are Interval and OnlyOnFailure -->
        <add key="RestartType" value="Interval" />
        <!-- BarTender process restart interval is in hours. Used only if RestartType is set to Interval. -->
        <add key="RestartInterval" value="1" />
     
    This will restart the persistent BarTender processes at an interval to help avoid issues.
    0
  • Avatar
    Legacy Poster

    Hi Ian, 

     

    I can put these settings in, but I don't think this is really the best solution as it doesn't actually fix the cause of the issue.

     

    In our implementation we don't want to restart the bartender process as it should only be running long enough to actually print the label and then it closes until the next request to print a label.

    0
  • Avatar
    Domingo Rodriguez
    版主

    For web services you should really be making use of the Print Server SDK in the Enterprise Automation Edition. Making use of the Print Server SDK isn't supported in your Edition of BarTender

     

    CO_E_SERVER_EXEC_FAILURE could be a sympton for a lack of non-interactive Windows Desktop Heap and with the Enterprise Automation Edition you will be able to set the amount of Desktop Heap per BarTender process you start. 

     

    In IIS based web applications you would not want to close the BarTender process after each print, you would want to recycle the process after an amount of time (which is how web services work).

    -1
  • Avatar
    Legacy Poster

    Hmm, ok.  

     

    From looking at this doc(http://www.seagullscientific.com/label-software/whitepapers/controlling-barcode-label-software-using-c-sharp-and-vb.net(english).pdf) I can't justify the jump in cost of stepping up to the enterprise edition to get the Print Server SDK. From my understanding it adds a windows service that I can queue labels on and they'll get processed one at a time. Is there anything stopping me, or anything that one would have to be aware of if they were thinking of building their own print queuing service?

     

    From your comment above I take it you believe that com error is possibly caused by trying to run too many copies of bartender(bartend.exe) on the machine all at the same time and this is causing the machine to run out of heap space? 

    0
  • Avatar
    saeed hezam

    ANY HELP FOR SAME PROPLEM

     

    WHEN I RUN IIS APP PRINT BARTENDER LABEL GIVE ME THIS ERROR SHOWN

     

    Retrieving the COM class factory for component with CLSID {B9425246-4131-11D2-BE48-004005A04EDF} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).

    0
  • Avatar
    Ian Cummings
    版主

    It looks like, and this is a guess, that your code is failing to create a BarTender process.  This could be for any number of reasons.  I suggest you contact technical support for assistance.

    0
  • Avatar
    saeed hezam

    thanks Ian  Give me technical support contact .

    0
  • Avatar
    Ian Cummings
    版主

    You may request technical support via the following webpage: https://support.seagullscientific.com/hc/en-us/requests/new

    0

登入寫評論。