IIS Express 响应为 502 Bad Gateway 但可以在 IE 中浏览
当我尝试将一些 XML 发布到 localhost:port URL 时,我从 IIS Express 收到 502 错误,但我可以愉快地浏览到该站点... http://localhost:2656/PoxService/help ...并查看生成的帮助页面
它作为 IIS 站点运行良好,它是 IIS Express 中的托管失败了:-(
这是 NET 4 POX 项目,使用“WCF REST 服务应用程序”模板创建
I'm getting a 502 error back from IIS Express when I try to do a POST some XML to the localhost:port URL, but I can happily browse to the site ... http://localhost:2656/PoxService/help ... and see the generated help page
And it works fine as an IIS site, it's the hosting in IIS Express that is failing :-(
This is NET 4 POX project, created using the "WCF REST Service Application" template
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IIS Express 在当前登录的用户身份下运行,而 IIS 工作进程在应用程序池身份(IIS_IUSRS 组的成员)下运行。由于它在 IIS 中工作,而不在 IIS Express 中工作,您能否将当前登录的用户添加到 IIS_IUSRS 组并检查这是否有效?
IIS Express runs under current logged on user identity whereas IIS worker process runs under app pool identity (which is a member of IIS_IUSRS group). Since it is working in IIS and not working in IIS Express, can you add current logged on user to IIS_IUSRS group and check if this works?