序列化问题加上[Serializable]即可
/// <summary> /// 报表身份授权重写 /// </summary> [Serializable] public class ReportServerCredentials : IReportServerCredentials