WCF에 대한 코드에서 IncludeExceptionDetailInFaults를 true로 설정합니다. App.Config를 사용하지 않고 코드에서 IncludeExceptionDetailInFaults를 어떻게 설정합니까? 예, 물론입니다-서비스 호스트를 열기 전에 서버 측에서. 그러나 이렇게하려면 WCF 서비스를 자체 호스팅해야합니다. IIS 호스팅 시나리오에서는 작동하지 않습니다. ServiceHost host = new ServiceHost(typeof(MyWCFService)); ServiceDebugBehavior debug = host.Description.Behaviors.Find(); // if not found - add behavior with setting turned on if (..