2014-01-23 49 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.