新的 IIS 站点 - WebApp 错误

新的 IIS 站点 - WebApp 错误

我设置了 IIS。我将包含所有文件的文件夹移到了 IIS 目录中。现在当我转到http://localhost/文件夹 我得到:

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)

源错误:

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.  

堆栈跟踪:

[BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
   Luxand.FSDK.ActivateLibrary(String LicenseKey) +0
   FaceRecognition._Default.Page_Load(Object sender, EventArgs e) in D:\Project Details\Layne Projects\DotNet Project\FaceRecognition\FaceRecognition\Default.aspx.cs:60
   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

答案1

以下是一些想法:

  • 您没有运行应用中包含的某些内容的许可证(基于堆栈跟踪中的 ActivateLibrary(String LicenseKey)引用
  • 该应用程序是为不同于您安装它的平台而编译的。(为 64 位编译,而您将其安装在 32 位 Windows/IIS 上)
  • 应用程序中的某处有损坏的文件。

您使用的是哪个版本的 Windows?

相关内容