指定的 CGI 应用程序遇到错误,服务器终止该进程 [英] The specified CGI application encountered an error and the server terminated the process
问题描述
我在 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.
- 导航到 src/ProjectName/wwwroot
- 打开 web.config
- 在
httpPlatform
中删除forwardWindowsAuthToken="true/false"
属性
- Navigate to src/ProjectName/wwwroot
- Open the web.config
- In the
httpPlatform
remove theforwardWindowsAuthToken="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屋!