我已经[FaultContract(typeof(ExceptionDetail))]为我的操作合同设置了属性.当我尝试将服务添加到客户端应用程序时,我收到此错误 - "Custom tool error: Failed to generate code for the service reference 'ServiceReference1'. Please check other error and warning messages for details."
但是当我注释掉FaultContract属性时,我能够在我的客户端应用程序中添加wcf服务引用.