我有以下的服务合同:WCF服务合同不与Microsoft图表控制工作作为PARAM
using System.Windows.Forms.DataVisualization.Charting;
...
[ServiceContract]
public interface IMyService
{
[OperationContract]
bool Print(Chart chart);
}
当我运行企图承载服务(在WCFTestClient在Visual Studio中)我得到以下异常:
Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.
这似乎是与Chart
类型本身的问题,因为这改变为其他工作正常。
任何想法?