.net - 使用 wcf Rest 服务在 iis7 上显示错误?

标签 .net wcf iis-7

我有一个 wcf 休息服务,当我把它放在 iss7 上并运行时,给我这个

The server encountered an error processing the request.
See server logs for more details.

但是日志没有说明任何内容。所以我的问题是我怎样才能把这些错误提出来?

最佳答案

根据我的需要(调试),只需将其设置为 true 我的服务行为并得到异常。

<serviceDebug includeExceptionDetailInFaults="false"/>

关于.net - 使用 wcf Rest 服务在 iis7 上显示错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15753719/

相关文章:

.net - 如何在通用配置中指定WCF已知类型?

asp.net-mvc - ASP.NET MVC运行IIS7部署问题

c# - 使用 WebClient 访问本地文件

c# - 如何使查找数组中第 N 个最频繁元素的过程更加高效和紧凑?

wcf - 使用 WCF 进行对象图序列化时是否有一些最佳实践?

c# - 如何告诉 ServiceHost 从任何目录加载程序集

asp.net - 通过 MSdeploy.exe 部署时发生错误 550

c# - 可以在开发机器的 web.config 中加密 ConnectionString 并部署在服务器上吗?

c# - 如何在 ASP.NET MVC 中跳过表单例份验证到某些 Controller 操作

c# - 使用任务 : ContinueWith needs a return statement which my business logic doesn't require