没有遇到过这个问题,这是我的写法,应该和你的是一样的public static IAPIProfile CreateAPIProfile()
{
ConfigInfo configInfo = ConfigFactory.Deserialize(HttpContext.Current.Server.MapPath("/Sysconfig.config"));
IAPIProfile profile = ProfileFactory.createSignatureAPIProfile();
profile.APIUsername = configInfo.PpUser;
profile.APIPassword = configInfo.PpPwd;
profile.Environment = configInfo.PpEnvironment;
profile.Subject = string.Empty;
profile.APISignature = configInfo.PpSignature;
return profile;
}
{
ConfigInfo configInfo = ConfigFactory.Deserialize(HttpContext.Current.Server.MapPath("/Sysconfig.config"));
IAPIProfile profile = ProfileFactory.createSignatureAPIProfile();
profile.APIUsername = configInfo.PpUser;
profile.APIPassword = configInfo.PpPwd;
profile.Environment = configInfo.PpEnvironment;
profile.Subject = string.Empty;
profile.APISignature = configInfo.PpSignature;
return profile;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货