我有以下服务合同:
using System.Windows.Forms.DataVisualization.Charting;
...
[ServiceContract]
public interface IMyService
{
[OperationContract]
bool Print(Chart chart);
}
当我运行“尝试托管服务”(在Visual Studio中的WCFTestClient下)时,出现以下异常:
Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.
这似乎是一个问题
Chart
键入自己,因为将此更改为其他内容可以正常工作。