指定的 CGI 应用程序遇到错误,服务器终止该进程 [英] The specified CGI application encountered an error and the server terminated the process

查看:38
本文介绍了指定的 CGI 应用程序遇到错误,服务器终止该进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 azure 上托管了一个 asp.net 5 应用程序,代码符合 beta8,应用程序在本地环境中运行良好,当我在 azure 站点上发布代码时.我收到一个常见错误指定的 CGI 应用程序遇到错误,服务器终止了该进程."

I am hosting a asp.net 5 application on azure, the code is complied for beta8, the application runs fine on the local environment and when i publish the code on the azure site. i get a common error "The specified CGI application encountered an error and the server terminated the process."

推荐答案

我能够通过从 wwwroot 下的 web.config 文件中删除 forwardWindowsAuthToken 来解决这个问题.

I was able to solve this issue by removing forwardWindowsAuthToken from the web.config file under wwwroot.

  1. 导航到 src/ProjectName/wwwroot
  2. 打开 web.config
  3. httpPlatform 中删除 forwardWindowsAuthToken="true/false" 属性
  1. Navigate to src/ProjectName/wwwroot
  2. Open the web.config
  3. In the httpPlatformremove the forwardWindowsAuthToken="true/false" property

重新部署和我的工作正常.

Redeploy and mine worked fine.

请参阅此处https://github.com/aspnet/Hosting/issues/364 进行大量讨论

See here https://github.com/aspnet/Hosting/issues/364 for plenty of discussion

这篇关于指定的 CGI 应用程序遇到错误,服务器终止该进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆