1

我正在使用 Microsoft .NET Framework 版本:4.0.30319;ASP.NET 版本:4.0.30319.276;视窗 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

请让我知道一个完整的解决方案。谢谢你。

4

1 回答 1

0

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

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

现在运行项目。

于 2013-11-07T09:50:19.460 回答