Server Error in '/' 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:


Line 56:                     double ratio = img.Width / (double)img.Height;
Line 57: 
Line 58:                     Doc theDoc = new Doc();
Line 59: 
Line 60:                     theDoc.SetInfo(0, "License", "322-594-815-276-7835-975");

Source File: f:\WEB\sites\575_Service_archives-expoPD\genererPDF.aspx.cs    Line: 58

Stack Trace:


[BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
   WebSupergoo.ABCpdf5.Internal.NDoc.New() +0
   WebSupergoo.ABCpdf5.Doc..ctor() +18
   archives.images.generated.Page_Load(Object sender, EventArgs e) in f:\WEB\sites\575_Service_archives-expoPD\genererPDF.aspx.cs:58
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   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.8974; ASP.NET Version:2.0.50727.8974