2014-01-23 48 views
5

项目升级到2.1的WebAPI和MVC 5.1混得IIS7以下错误后:ASP.NET MVC 5.1,ASP.NET Web API 2.1需要IIS 7.5吗?

This operation requires IIS version 7.5 or higher running in integrated pipeline mode.

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.PlatformNotSupportedException: This operation requires IIS version 7.5 or higher running in integrated pipeline mode.

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: [PlatformNotSupportedException: This operation requires IIS version 7.5 or higher running in integrated pipeline mode.] System.Web.HttpResponse.get_ClientDisconnectedToken() +3127102
System.Web.HttpResponseWrapper.get_ClientDisconnectedToken() +9
System.Web.Http.WebHost.HttpResponseBaseExtensions.GetClientDisconnectedTokenWhenFixed(HttpResponseBase response) +58
System.Web.Http.WebHost.d__0.MoveNext() +134 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +93
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +52 System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +60
System.Web.HttpTaskAsyncHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +6
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9514812 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

______________________ Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408

+0

简短的回答,**是**。 长时间回答,**是**。 随时修改您的问题,以获得更详细的答案。 –

+0

您是否在某处看到过这样的需求?我无法在任何地方找到这样的要求。而且我们已经使用了WebApi 2,它在IIS7下运行良好,IIS7 –

+0

正在使用WebAPI2,而不是2.1,对吧? –

回答

7

这是从网络API 2至2.1的回归。以下错误是保持跟踪的是:

https://aspnetwebstack.codeplex.com/workitem/1645

注意: 的修复已经今日(2014年2月10日)被释放。确保更新你的软件包。

+0

伙计们,这个问题已经修复,并且新的更新包已发布到nuget.org。请更新你的软件包。 –

5

我们有这个问题,并在VS通过以下设置解决2012

Right Click Web Role-> Properties - > Web -> Servers -> Select Use Local IIS Web Server.