【问题标题】:Got a PlatformNotSupportedException得到 PlatformNotSupportedException
【发布时间】:2015-06-18 17:12:34
【问题描述】:

当我尝试运行我的网络应用程序时,我突然得到了这个:

PlatformNotSupportedException 错误

我在下面提到了异常详细信息:

[PlatformNotSupportedException:此操作需要集成 IIS 管道模式。] System.Web.HttpResponse.get_Headers() +9710022
System.Web.HttpResponseWrapper.get_Headers() +9
Microsoft.Owin.Host.SystemWeb.CallHeaders.AspNetResponseHeaders..ctor(HttpResponseBase 回复)+72
Microsoft.Owin.Host.SystemWeb.OwinCallContext.CreateEnvironment() +434 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.GetInitialEnvironment(HttpApplication 申请)+303
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.PrepareInitialContext(HttpApplication 申请)+65
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.BeginEvent(对象 发件人,EventArgs e,AsyncCallback cb,对象额外数据)+622
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +285 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

【问题讨论】:

标签: asp.net


【解决方案1】:

我自己找到了问题的答案..

进入项目属性。选择 Web 选项卡。选择“使用本地 IIS Web 服务器”勾选“使用 IIS Express”

这将解决问题。

【讨论】:

  • 发布到 IIS 时,在生产模式下会再次出现问题。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-06-09
  • 1970-01-01
  • 2018-03-07
  • 1970-01-01
  • 2018-06-19
  • 2020-12-25
  • 1970-01-01
相关资源
最近更新 更多