string str = (string)ServiceBrokerFactory.ExecuteMethod<IMainWCF>(WebConfig.GetValue("MainService"), pMethodName, new object[] { actionType, strCon });
无法序列化类型“System.Threading.Tasks.Task`1[System.String]”。请考虑将其标以 DataContractAttribute 特性,并将其所有要序列化的成员标以 DataMemberAttribute 特性。如果类型为集合,则请考虑将其标以 CollectionDataContractAttribute 特性。有关其他受支持的类型
在window server 2008下没有问题,但在2003下就报这个错了。