【问题标题】:Could not load file or assembly [System.EnterpriseServices.Wrapper.dll]无法加载文件或程序集 [System.EnterpriseServices.Wrapper.dll]
【发布时间】:2013-11-07 09:45:51
【问题描述】:

我正在使用 Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.276; Windows 2k3。

在重置 IIS 几天后。再次出现此错误。

我没有找到以下错误的完整解决方案:

Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))

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.NotImplementedException: Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))

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: 


[NotImplementedException: Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))]

[FileLoadException: Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or one of its dependencies. Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))]
   System.Lazy`1.get_Value() +9587987
   Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) +43
   System.Web.HttpApplication.InitModulesCommon() +172
   System.Web.HttpApplication.InitModules() +43
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327

请告诉我一个完整的解决方案。 谢谢。

【问题讨论】:

    标签: c# asp.net iis


    【解决方案1】:

    在从 Visual Studio 运行项目时,使用以下步骤将平台目标强制为 32 位:

    ->Right click on Project
    ->Select Properties
    ->Goto Build Options
    ->Change  "Platform Target" from "ANY CPU" to "X86"
    

    现在运行项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-08-17
      相关资源
      最近更新 更多