KB‎ > ‎

Error: Server Error in '/Triaster Browser Toolkit 2011/PrintFromWeb' Application

 This article is suitable for an IT Adminstrator

Ref: 201212161415
Defect ID: 2673212
Last Edited: November 16th, 2012

Symptoms

When attempting to print using the Print from Web tool, an error is reported.
 
The nature of the error depends on whether detailed errors are configured to be displayed on the computer being used - the server or a client computer. Usually, detailed errors are displayed when working directly on the server, while a more general runtime error is reported on client computers. This is the detailed error:
 

Server Error in '/Triaster Browser Toolkit 2011/PrintFromWeb' Application.

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B).

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: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B).

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.

Stack Trace:

[BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
   GZipStream.gzopen(String name, String mode) +0
   GZipStream..ctor(String fileName) +58
   ImageGenerator.Main() +543
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456
 

Cause

The Print from Web tool is a 32-bit application. When hosted on a 64-bit Windows platform, it needs to be  run under an application pool configured to run 32-bit applications.

Solution

Configure the Print from Web tool to run under a suitably configured application pool, as described in this article.
http://knowledgebase.triaster.co.uk/help-for-it-administrators/triaster-server/configure-print-tool-64-bit-windows

Applies to:

  • Triaster Server 11 and later
  • Windows Server 64-bit platforms


Need further help? Contact the Triaster Support team by e-mailing support@triaster.co.uk or by calling us on + 44 (0)870 402 1234.
 
Do you have any feedback or suggestions that you would like to share with Triaster? We would love to hear from you! Please e-mail feedback@triaster.co.uk